js文件的亂碼問(wèn)題
這是關(guān)于一個(gè).js文件里面的亂碼問(wèn)題,大牛們?nèi)绾谓鉀Q呀
render();
var content = "瀹㈠畼錛屾潵鍟︼紝鍧愬惂錛?br/>鍥炲[鏌ョ湅]鏀跺彇鏇村綺懼僵鍐呭銆?;
content += "<br/>鍥炲[甯姪]鍙互鏌ョ湅鎵?湁鍙敤鐨勬寚浠ゃ?";
// 娣誨姞鍏紬鍙風(fēng)殑寮?満鐧?
appendDialog("talk_recordbox","鍏紬鍙?,content);
render();
2017-06-21
文件右鍵->propertites-->resources-->other-->選擇UTF-8
2017-04-11
encodeURI(encodeURI(decodeURIComponent(content))