[Mediawiki-l] Web page source - "strange" characters

Frank Ralf Frank.Ralf at gmx.net
Tue Mar 23 13:33:30 UTC 2010


>>> If you view the file in your browser you
>>> have to make sure it uses the correct encoding.

> Where can it be checked?
Look in the "View" menu of your browser for something like encoding settings (differs a little between browsers).

> What did you do, "nakohdo", to display the Chinese characters
> instead of the å? é?¤æ??票/ä¾µæ? sequence of characters?
> (Because I can really see them on my screen with the same web browser...)
The browser can normaly recognise the encoding of a HTML or XML file and display it correctly. The robots.txt file you mentioned in your first posting doesn't provide a mechanism for telling its encoding so the browser has to guess or take the defaul settings.

Try opening the robots.txt in your browser and change the encoding to UTF-8. You could also try downloading the file (right click, "Save target as...") and opening it with a Unicode capable text editior, e.g. Windows own Notepad.

See http://en.wikipedia.org/wiki/Character_encoding for further information.

hth
Frank



More information about the MediaWiki-l mailing list