日语编码问题,不断恢复为土耳其语(Windows)
我有一些 php 文件,其文本输出(在 dreamweaver 中)为 诸如此类的东西
“–”ú‚Í‚±‚¿‚ç‚Ìς[ת‚ğˆóü‚µ‚äó•t‚É‚‚²'ñ▪▪‚¤‚³‚B
应该是这样要成为日文文本,如果我将 Dreamweaver 中的编码更改为 swift-JIS,则文本如下所示:
▪️ ▪️ ▪️ ▪️ ▪️
▪️ 日语(swift-jis)并将其粘贴回 Dreamweaver,然后更改编码,一切看起来都很棒。我保存,重新打开并繁荣,回到土耳其语和奇怪的编码。有什么想法吗?
在实际网站上,它看起来不错,只是我希望能够在 Dream Weaver 中对其进行编辑,并且显然稍后再返回它并且仍然能够阅读它。
I have some php files which the text is outputting (in dreamweaver) as
stuff like...
“–“ú‚Í‚±‚¿‚ç‚̃[ƒ‹‚ğˆóü‚µ‚Äó•t‚É‚Ä‚²’ñ¦‚‚¾‚³‚¢B
It is supposed to be Japanese text, if I change the encoding in dreamweaver to swift-JIS, the text look like:
ƒxƒ‹ƒRƒ~ƒ…ƒjƒP[ƒVƒ‡ƒ“ƒYƒŠƒ~ƒeƒbƒh
So i open the file in notepad ++ and character set to Japanese (swift-jis) and paste it back in to dreamweaver and then change the encoding and everything looks great.. I save, reopen and boom, back to turkish and the weird encoding. Any ideas?
On the actual website it looks OK, its just i want to be able to edit it in dream weaver and obviously come back to it in a later date and still be able to read it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果有人仍然感兴趣:我在网上找到了这个答案,它对我有用:
要明确说明 DW 使用什么编码,请手动将此行放在页面的开头:
其中 xxxxxxx 应替换为正确的编码名称(请参阅修改页面 props.-document 编码)。
希望有帮助。
彼得塔
if anyone is still interested: I found this answer smwhere on the web and it worked for me:
to explicitly say DW what encoding to use, manually place this line in the beginning of your page:
where xxxxxxx should be replaced with correct name for your encoding (see modify-page props.-document encoding for that).
Hope that helps.
Peter-ta
您需要明确告诉 Dreamweaver 在 Swift-JIS 中打开该文件。
这里是一个教程,似乎解释了如何操作。也许“打开”对话框中还有一个选择框。
You will need to explicitly tell Dreamweaver to open the file in Swift-JIS.
Here is a tutorial that seems to explain how. Maybe there also is a select box in the "Open" Dialog.