Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I loaded www.google.hk

alt text

and then changed the character encoding to Greek

alt text

and got this

alt text

What exactly did the browser do when I changed the character encoding?

It looks like translation but I think it should be something like interpreting the characters as Greek data and rendering the corresponding Greek, which might not make any sense.

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

A character set ("charset") is a mapping from arbitrary integers to characters.

The web site is sending along a sequence of integers to your web browser, along with a recommendation about how they are supposed to be translated into characters.

When you change the character encoding used by the browser, you change how it parses these integers. So, if your character encoding does not match the one intended by the web page, you will likely see garbage.

I suggest using your browser's "autodetect" setting, which will take the web site's recommended encoding and should always let you see the site as it is meant to be viewed.

share|improve this answer
    
thanks! –  Lazer Aug 13 '10 at 5:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.