网站字符编码问题
我的网站上有一些土耳其字符,但我无法很好地看到字符。非英文字符有问题。我用 UTF-8 对其进行编码并添加了一些元标记来解决此问题,但问题似乎仍然相同。你能看一下网站(你可以使用firebug查看代码)并告诉我哪里做错了吗?如果您能指导我解决该错误,我将不胜感激。
更新:有问题的网站是:http://apps.netbiscuits。 com/516904/New_Custom_Application_1/
I have some turkish characters at my website but I am not able to see characters very well. There is a problem with non-english characters. I encoded it with UTF-8 and added some meta tags to fix this issue but the problem still seems same. Could you please look at the website (you can look at the code by using firebug) and tell me where I am doing wrong? I will be appreciated if you can guide me about the error.
Update: the website in question is: http://apps.netbiscuits.com/516904/New_Custom_Application_1/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的静态内容(“Kişisel”,关键字元)已正确编码为 UTF-8。
页面上的其他内容取自目标网站上的故事,在编码为 UTF-8 之前,已从 ISO-8859-1(西方)而不是 ISO-8859-9(土耳其)错误解码。
您如何提取该内容并将其放在页面上?是从数据库中抓取的还是其他什么?您可能在某处错过了
encoding
参数,导致 Java 求助于使用系统“默认”编码,该编码可能是西方而不是土耳其语。Your static content (“Kişisel”, the keywords meta) is correctly encoded as UTF-8.
The other content on the page, taken from stories on the target site, has been mis-decoded from ISO-8859-1 (Western) instead of ISO-8859-9 (Turkish), before being encoded to UTF-8.
How are you extracting that content to put on the page? Is it scraped, or from a database, or something? It's possible you've missed an
encoding
argument somewhere, causing Java to resort to using the system ‘default’ encoding which may be Western instead of Turkish.fetch.scritch.org 是一个解决编码问题的好工具 - 它有一个编码选项卡,可以报告编码标头,来自可能的 http-equiv,并尝试猜测编码。
fetch.scritch.org is a good tool for encoding issues - it has an encoding tab that reports the encoding from the header, from possible http-equiv and it attempts to guess the encoding.