Chrome中的HTML特殊字符转换为问号Mozilla的 [英] HTML Special Characters converted to question mark in Chrome & Mozilla

查看:289
本文介绍了Chrome中的HTML特殊字符转换为问号Mozilla的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HTML特殊字符(例如á,Á)正在转换为Chrome浏览器中的 Mozilla的。它在IE中运行正常。



当我在网站的搜索框中使用特殊字符á时,Chrome / Mozilla和IE浏览器的网址有所不同。搜索查询中的特殊字符转换为:



%E1 - 在Chrome / Mozilla的URL中,但在文本字段显示为?。



%26aacute%3B - 在IE的URL中,textfield正确显示特殊字符á。这是正确的。



有人可以帮助解决此问题。



网站使用编码:

 < meta http-equiv =content-typecontent =text / html; charset = UTF-8> 

感谢您的帮助。

解决方案

这发生在我本地的一个网站上。我用记事本创建了index.html文件,这是我的错误。
尝试将文件重新保存为ASCII或UTF-8(同时尝试),然后再次将其上传到您的Web服务器。


HTML Special Characters like á, Á are getting converted to ? in Chrome & Mozilla. It works fine in IE.

When I use special character á in the search box of the site, there is a difference in url for both Chrome/Mozilla and IE. Special Character in the search query is converted as:

%E1 - in URL of Chrome/Mozilla, but in text field it is displayed as ?.

%26aacute%3B - in URL of IE, textfield correctly show the special character á. This is correct.

Can somebody help to fix this issue.

Site uses encoding:

<meta http-equiv="content-type" content="text/html; charset=UTF-8">

Thanks for your help.

解决方案

This happened to me on a local site. I've created the index.html file using Notepad, and it was my mistake. Try to re-save the file as ASCII, or UTF-8 (try both) and then upload it again to your web server.

这篇关于Chrome中的HTML特殊字符转换为问号Mozilla的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆