2

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.

1

1 Answer 1

5

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.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .