Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Dec 2008
    Thanked 0 Times in 0 Posts

    charset confliction

    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]

  2. #2
    Regular Coder
    Join Date
    Oct 2006
    United Kingdom
    Thanked 30 Times in 29 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

    good luck



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts