SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Charset

  1. #1
    SitePoint Wizard dragonfly_7456's Avatar
    Join Date
    Dec 2002
    Location
    Moscow, USSR
    Posts
    1,092
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Charset

    How would i include this charset: Unicode UTF-8
    in meta data?
    Content Writing Service - Get custom SEO articles for 10$

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2002
    Location
    Bristol, UK
    Posts
    2,240
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HTML Code:
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    Stick that in the HEAD section of your page

    -Sam
    Sam Hastings

  3. #3
    SitePoint Wizard dragonfly_7456's Avatar
    Join Date
    Dec 2002
    Location
    Moscow, USSR
    Posts
    1,092
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I also found this out about the utf-8 charset:
    utf8
    Description:Unicode / ISO 10646 UTF-8
    Type: Multi8 (Universal)
    Content Writing Service - Get custom SEO articles for 10$

  4. #4
    SitePoint Wizard dragonfly_7456's Avatar
    Join Date
    Dec 2002
    Location
    Moscow, USSR
    Posts
    1,092
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Devilware.net
    HTML Code:
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    Stick that in the HEAD section of your page [img]images/smilies/smile.gif[/img]

    -Sam
    That didn't get the russian text to display right. Yet when I use the browser (View --> etc), and select UTF-8 unicode, it displays correctly.

    I am testing here: http://www.aqua-binar.ru/ezpublish/index.php/admin/
    Content Writing Service - Get custom SEO articles for 10$

  5. #5
    SitePoint Zealot
    Join Date
    Jan 2002
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is what I found in your code:

    Line 11
    Code:
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
    line 19
    Code:
    <meta http-equiv="Content-Type" content="text/html; charset=koi8-r" />
    You need to delete one and correctly set the other.

    Also, you don't have an xml prolog on there. If you switch to utf-8, then you don't need it (it's just optional). But if you use an encoding that's not utf-8 or utf-16, then the xml prolog is required at the top of the page, above the doctype:
    Code:
    <?xml version="1.0" encoding="windows-1251"?>


Bookmarks

Posting Permissions

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