在Eclipse中编码 [英] Encoding in Eclipse
问题描述
我正在尝试使用eclipse编码UTF-8,用于抛光字符。不幸的是,我仍然有编码的问题。我的设置:
I'm trying to use eclipse encoding UTF-8, for polish characters. Unfortunately, I still have problem with encoding. My settings:
窗口 - >首选项 - >调试
Window->Preferences->Debug
Window-> Preferences-> Workspace
Window->Preferences->Workspace
Window-> Preferences-> PHP Content Type
Window->Preferences->PHP Content Type
我的php文件:
文件比例:
最终结果:
我忘记了某件事吗?
推荐答案
eclipse浏览器可能不知道要使用哪个编码,因为你不结束指定它的任何HTTP头。
The eclipse browser probably just doesn't know which encoding to use, since you don't send any HTTP header specifying it.
尝试发送以下HTTP标头:Content-Type:text / html; charset = utf-8
Try sending the following HTTP header: Content-Type: text/html; charset=utf-8
或使用真正的浏览器,并将页面编码明确地设置为UTF-8。
Or use a real browser, and set the page encoding to UTF-8 explicitely.
这篇关于在Eclipse中编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!