Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: charset confliction
12-15-2009, 11:49 AM #1
- Join Date
- Dec 2008
- Thanked 0 Times in 0 Posts
so how to use multiple charset in a page
i have a part of the page uses windows-1256 and the rest of the page uses utf-8????
how to use the 2 charsets without making confliction between the 2 charsets??
the top the page uses
[HTML]<meta http-equiv="Content-Type" content="text/html; charset=windows-1256" />[/HTML]
and the rest uses
[HTML]<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> [/HTML]
12-15-2009, 03:45 PM #2
- Join Date
- Oct 2006
- United Kingdom
- Thanked 29 Times in 28 Posts
You shouldn't use windows-1256 as this is Windows OS specific and other OS (i.e. Linux, Apple Mac, etc.) may not render the contents of the page correctly
second, HTML pages can only contain one content type definition. If you wish to combine different content types, you may have to use IFRAMES, but this may complicate things for you.
If you wish to combine Arabic and English words on the same page just use utf-8 which can handle both. For example, if you where to view the content type of http://www.aljazeera.net/Portal you will find that they use utf-8 and it works for them