SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up how do i get my website to display thai and english text, it wont work :S!!!

    I have no idea why I cant do this. I am adding content to a html page that uses both english text and THAI (below is my header information):

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text-html; charset=utf-8">
    <title>Untitled</title>
    <link rel="stylesheet" href="css/global.css" type="text/css" media="screen" charset="utf-8" />
    <link rel="shortcut icon" href="images/global/favicon.ico" />

    <style type="text/css">
    .thai {
    font-family:Tahoma, Arial Unicode MS;
    font-size: 2em;
    }
    </style>
    </head>
    Here is the content I am trying to display as THAI:

    <div id="body">

    <div id="content"><span class="thai">ได้ออกแบบคานให้เป็นทรงสี่เหลี่ยมคางหมู เพื่อแก้ปัญหาการเกิดสนิมอันเนื่องมาจากการบิดหรืองอของคาน</span></div>

    </div>
    Here is what I am seeing in my browser (firefox but tested in safari, chrome, IE... all providing same results):

    ได้**กแบบคานให้เป็นทรงสี่เหลี่ยมคางหมู เพื่*แก้ปัญหาการเกิดสนิม*ันเนื่*งมาจากการบิดหรื*ง*ข*งคาน
    I have been searching google for the past hour and havnt managed to solve the problem, according to what I have read it should work, but it is not showing.

    It shows the THAI text in dreamweaver too.

    Please help I cant move on with this project until I can make the THAI text display.

  2. #2
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    anybody know what to do? its driving me mad

  3. #3
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,498
    Mentioned
    164 Post(s)
    Tagged
    1 Thread(s)
    *please don't bump threads. Sometimes it takes a while

    Maybe this SitePoint article will help?
    The Definitive Guide to Web Character Encoding

  4. #4
    SitePoint Wizard donboe's Avatar
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    1,967
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi James. Just tested your content in all mayor browsers and it is working for me.

    Did you had a different charset before using utf-8?
    Good artists copy, great artists steal (Pablo Picasso - 1934)

  5. #5
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,498
    Mentioned
    164 Post(s)
    Tagged
    1 Thread(s)
    Do you have the needed font files for your browser to use?

    And should Tahoma be your first choice?

  6. #6
    Non-Member
    Join Date
    Dec 2010
    Location
    /home/pc
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try

    Code HTML4Strict:
    <meta meta http-equiv="Content-Type" content="text/html; charset=windows-874" />

    It displays your Thai text correctly in my IE8


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
  •