On 2007-11-24, Puzzled <scratching.head (AT) example (DOT) com> wrote:
Quote:
I need to have text in several charsets (e.g. latin, Kyrillic,
Chinese) on the same page at the same time. I thought using the
charset= qualifier (with a charset name from iana.org) in a
span> would do the job, but apparently not so--when I
experimented to see if I could get Kyrillic, it continued to
display the 8-bit chars in the latin font.
Any help greatly appreciated. |
Use UTF-8. You can't switch encodings in a single page, but UTF-8 can be
used to encode text in any language.
You might want to use lang attributes to give the browser a clue what
font to use (although it may just guess a font to fit the characters
anyway).
e.g.
<div lang="en">
English
</div>
<div lang="ru">
Russian goes here (real Russian obviously, which this isn't)
</div>
<div lang="zh-cn">
etc.
</div>