Results 1 to 3 of 3

Thread: Diplaying Chinese Characters

  1. #1
    Join Date
    Jul 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Diplaying Chinese Characters

    1) Switch Content:

    2) http://www.dynamicdrive.com/dynamici...tchcontent.htm

    3) Hi there, can you point me in the right direction. I have used the switch content script on a site and it works wonderfully. BUT now the client has asked me to duplicate the whole site in Chinese, and I cant get the switch content script to display the caractors. I have changed the font to SIMSUN (CHINESE) but still no joy, all Im getting back is garble. Which way should I go?

    The rest of the pages are outputting the chinese caractors fine, just the switch content script content is wrong.

    Thanks in advance

    Geno

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    It's probably an encoding issue. What sort of "garble" are you getting? Your best bet is probably to serve the page as UTF-16, since it contains primarily Chinese content; you need to make sure that it actually is UTF-16 as well, though. The appropriate font should be used automatically.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jul 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you Twey, all done and working groovy. You were right, serving issue, It was weird, the other chinese content was displaying fine, but not the switch content script content. Changed the seving encoding and its fine now. your the best ... thanks Geno

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
  •