IE7 iso-8859-1 编码
我注意到,当通过 IE7 发布表单时,一旦请求到达服务器,重音字符就会变得混乱。但在 FF3 中却表现得很好。页面编码设置为 ISO-8859-1。有什么特别的地方我应该开始调查吗?
提前致谢!
编辑:我注意到的行为特别是从单词复制和粘贴时的 ü 字符。如果我从记事本将其粘贴到 IE7 中,它就可以正常工作。
I'm noticing that when posting a form through IE7, accented characters are getting messed up as soon as the request hits the server. But in FF3 it works just fine. The page encoding is set to ISO-8859-1. Is there any particular place I should start investigating?
Thanks in advance!
EDIT: The behavior I'm noticing is specifically a ü character when copied and pasted from word. If I paste it into IE7 from notepad it works fine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
事实证明,AJAX 请求没有显式指定字符集请求标头。 FF 3 似乎默认设置了它,但 IE7 没有。一旦我在 AJAX 请求标头上定义了它,它就开始工作了。
感谢大家的帮助。
It turns out that the AJAX request had not explicitly specified a charset request header. FF 3 seemed to have set it by default but IE7 would not. Once I had defined that on the AJAX request header it started working.
Thanks all for your help.
检查您的服务器是否正在发送默认字符集标头,如果是,请将其关闭。您可以使用 实时 HTTP 标头 Firefox 扩展。
Check if your server is sending default charset header and turn it off if it is. You can use Live HTTP Headers Firefox extension.
šžý
”)将被破坏,因为它们在此编码中未定义。这不是灵丹妙药,但如果可能的话,我建议切换到 UTF-8 - 您将节省大量的 i18n 和 l10n 麻烦。
šžý
") will be mangled because they are undefined in this encoding.It's not a silver bullet, but I'd recommend switching to UTF-8 if at all possible - the i18n and l10n hassles you'll save yourself are immense.