乱码问题,请高手来帮忙,在线等,问题解决即解贴

axearshura 2004-11-24 10:36:30
我有如下一段代码,包含在.js文件中:
这是FCKEditor编辑器中的语言文件,我想把它汉化成中文,但是当我把下面的英文修改为中文时,在页面调用时,显示的却是类似"??&"一类的乱码,请问高手们,如何解决呢?,问题解决马上结帖,谢谢大家了


var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
"Dir" : "ltr",

// Toolbar Items and Context Menu
"Cut" : escape("Cut") ,
"Copy" : "复制" ,
"Paste" : "粘贴" ,
"PasteText" : "Paste as plain text" ,
"PasteWord" : "Paste from Word" ,
"Find" : "Find" ,
"SelectAll" : "Select All" ,
"RemoveFormat" : "Remove Format" ,
"InsertLink" : "Insert/Edit Link" ,
"RemoveLink" : "Remove Link" ,
"InsertImage" : "Insert/Edit Image" ,
"InsertTable" : "Insert/Edit Table" ,
"InsertLine" : "Insert Horizontal Line" ,
"InsertSpecialChar" : "Insert Special Character" ,
"InsertSmiley" : "Insert Smiley" ,
"About" : "About FCKeditor" ,
"Bold" : "Bold" ,
"Italic" : "Italic" ,
"Underline" : "Underline" ,
"StrikeThrough" : "Strike Through" ,
"Subscript" : "Subscript" ,
"Superscript" : "Superscript" ,
"LeftJustify" : "Left Justify" ,
"CenterJustify" : "Center Justify" ,
"RightJustify" : "Right Justify" ,
"BlockJustify" : "Block Justify" ,
"DecreaseIndent" : "Decrease Indent" ,
"IncreaseIndent" : "Increase Indent" ,
"Undo" : "Undo" ,
"Redo" : "Redo" ,
"NumberedList" : "Numbered List" ,
"BulletedList" : "Bulleted List" ,
"ShowTableBorders" : "Show Table Borders" ,
"ShowDetails" : "Show Details" ,
"FontStyle" : "Style" ,
"FontFormat" : "Format" ,
"Font" : "Font" ,
"FontSize" : "Size" ,
"TextColor" : "Text Color" ,
"BGColor" : "Background Color" ,
"Source" : "Source" ,

// Context Menu
"EditLink" : "Edit Link" ,
"InsertRow" : "Insert Row" ,
"DeleteRows" : "Delete Rows" ,
"InsertColumn" : "Insert Column" ,
"DeleteColumns" : "Delete Columns" ,
"InsertCell" : "Insert Cell" ,
"DeleteCells" : "Delete Cells" ,
"MergeCells" : "Merge Cells" ,
"SplitCell" : "Split Cell" ,
"CellProperties" : "Cell Properties" ,
"TableProperties" : "Table Properties" ,
"ImageProperties" : "Image Properties" ,
...全文
119 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
Clove 2004-11-25
  • 打赏
  • 举报
回复
用记事本另存为编码为utf-8格式绝对可以
哇咔咔咔咔咔咔
ttyp 2004-11-24
  • 打赏
  • 举报
回复
没听说过页面可以设置的,你这个是文件编码不对啊,和源代码都无关了,到是看看你做代码管理的软件可以不可以自动转。VSS里可以选择文件存储编码
alern_zyb 2004-11-24
  • 打赏
  • 举报
回复
帮你顶一把
是是非非 2004-11-24
  • 打赏
  • 举报
回复
up
axearshura 2004-11-24
  • 打赏
  • 举报
回复
回复人: ttyp(愿赌服输) ( ) 信誉:100 2004-11-24 10:41:00 得分: 0


用记事本另存为编码为utf-8格式的看看


我转存之后可以,但是我现在是在整个VI工程中进行编码,能不能有办法不需要进行转存,因为如果需要转存的话,我需要把这个文件在每次打包前提取出来进行转存,然后再打包。
不知道在页面如何设置可以起到转存的作用?
ttyp 2004-11-24
  • 打赏
  • 举报
回复
用记事本另存为编码为utf-8格式的看看
HHH3000 2004-11-24
  • 打赏
  • 举报
回复
你的调用也面设置content="text/html; charset=GBK"了吗?

87,921

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧