HighDots Forums  

Re: Multiple charsets on one page?

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Re: Multiple charsets on one page? in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ben C
 
Posts: n/a

Default Re: Multiple charsets on one page? - 11-24-2007 , 02:44 PM






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>


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.