Apache和特殊字符的问题 [英] Problems with Apache and special characters
问题描述
嗨。
在Linux上运行Apache / 2.0.52,我遇到了特殊的问题
字符
(西班牙语代字号)在我的页面上。我可以在我的机器上正确看到它们
(Espa?a),但
不在我的网络服务器上(Espa?±a)。
>
我的测试页是:
-------------------------
< html>
< h1> Espa?a< / h1>
< / html>
----- --------------------
在我的''httpd.conf'中我设置:
-------------------
AddDefaultCharset ISO-8859-1
------- ------------
我不知道这是我的网页或我的网络服务器的问题。
有什么建议吗?非常感谢。
Hi.
Running Apache/2.0.52 on Linux, I''ve got problems with special
characters
(Spanish tildes) on my pages. I can see them correctly on my machine
(Espa?a), but
not on my web server (Espa?±a).
My test page is:
-------------------------
<html>
<h1>Espa?a</h1>
</html>
-------------------------
Within my ''httpd.conf'' I set:
-------------------
AddDefaultCharset ISO-8859-1
-------------------
I don''t know wether it''s a problem of my webpages or of my webserver.
Any suggestion? Thank you very much.
推荐答案
.oO(ta ******** @ gmail.com)
.oO(ta********@gmail.com)
在Linux上运行Apache / 2.0.52,我的页面上有特殊的
字符(西班牙语)。我可以在我的机器上正确看到它们(Espa?a),但
不在我的网络服务器上(Espa?±a)。
Running Apache/2.0.52 on Linux, I''ve got problems with special
characters
(Spanish tildes) on my pages. I can see them correctly on my machine
(Espa?a), but
not on my web server (Espa?±a).
发布网址。
Micha
Post an URL.
Micha
ta ******** @ gmail.com 写道:
在Linux上运行Apache / 2.0.52,我遇到了特殊问题<我的页面上有字符(西班牙语)。我可以在我的机器上正确地看到它们(Espa?a),但
不在我的网络服务器上(Espa?±a)。
看起来像某种Unicode。
我的测试页是:
-------------- -----------
< html>
< h1> Espa?a< / h1>
< / html>
--- ----------------------
您确定您的测试页面没有用UTF-8编码或Unicode或
无论什么(与ISO-8859-1不同)?
在我的''httpd.conf'中我设置:
---- ---------------
AddDefaultCharset ISO-8859-1
-------------------
我不知道这是我的网页或我的网络服务器的问题。
这是两个问题都没有:他们不同步!
有什么建议吗?非常感谢。
Running Apache/2.0.52 on Linux, I''ve got problems with special
characters (Spanish tildes) on my pages. I can see them
correctly on my machine (Espa?a), but
not on my web server (Espa?±a).
Looks like some sort of Unicode.
My test page is:
-------------------------
<html>
<h1>Espa?a</h1>
</html>
-------------------------
Are you sure your test page isn''t encoded in UTF-8 or Unicode or
whatever (something different than ISO-8859-1)?
Within my ''httpd.conf'' I set:
-------------------
AddDefaultCharset ISO-8859-1
-------------------
I don''t know wether it''s a problem of my webpages or of my webserver.
It''s a problem of both and neither: they''re not in synch!
Any suggestion? Thank you very much.
尝试:
< h1> Espa& ntilde; a< / h1>
以及服务器和页面的编码不再重要:-)
-
邮寄到我的 ;来自:"所有人都可以在 http://www.dodgeit 上阅读地址
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY邮寄给整个回复:地址(我的姓名< my @ address>)
可以绕过我的垃圾邮件过滤器。如果有,我可以回复另一个地址!
Try:
<h1>España</h1>
and the encodings for your server and pages no longer matter :-)
--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!
.oO(Pedro Graca)
.oO(Pedro Graca)
试试:
< h1> Espa& ntilde; a< / h1>
以及服务器和页面的编码不再重要: - )
Try:
<h1>España</h1>
and the encodings for your server and pages no longer matter :-)
>
我宁愿修复编码问题而不是使用实体。
Micha
I would rather fix the encoding issue instead of using entities.
Micha
这篇关于Apache和特殊字符的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!