刚才上 http://zh.wikipedia.org 的时候,直接在地址栏里输入了中文结果乱码了,一般情况下 URL 是 UTF-8 的编码,三个汉字编码后就是 9 个字节,但 Firefox 给编码成了 12 个字节?
奇怪,难道 Firefox 用的不是 UTF-8 的编码?
打开 about:config 找了一下,看见 network.standard-url.encode-utf8 这个配置的值默认是 false,双击修改为 true。重新打开 http://zh.wikipedia.org/wiki/变压器 就一切正常了.

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

This site uses Akismet to reduce spam. Learn how your comment data is processed.