Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Vietnamese text website

  1. #1
    Join Date
    Aug 2008
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Vietnamese text website

    Im coding an HTML site that needs to be in Vietnamese.

    What do i have to do to make the site load properly in Vietnamese every time?

  2. #2
    Join Date
    Feb 2007
    Location
    🌎
    Posts
    528
    Thanks
    10
    Thanked 10 Times in 10 Posts
    Blog Entries
    2

    Default

    If, in your <head> section, you see:
    Code:
    <meta http-equiv="Content-Type" content="text/html; charset=something">
    , change it to:
    Code:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    Otherwise, just put:
    Code:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    in your <head> section.
    Then you can just put the Vietnamese characters (or any characters) directly into the code.
    ....(o_ Penguins
    .---/(o_- techno_racing
    +(---//\-' in
    .+(_)--(_)' The McMurdo 500

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

    Default

    This will not necessarily help. You must have your server serve the correct Content-Type header. See the W3C validator FAQ entry on the subject.
    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!

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by Twey View Post
    This will not necessarily help. You must have your server serve the correct Content-Type header. See the W3C validator FAQ entry on the subject.
    Twey, I'm not sure on this one, but isn't it also true that the browser, regardless of how the page is served, must support the Asian characters?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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

    Default

    No -- not unless they are encoded as HTML entities (blowing the page size up to anything up to about eight times, in many cases). The HTTP Content-Type header must always override the <meta> tag, and the <meta> tag is only capable of setting ASCII-compatible encodings (since the browser must be able to read that far in the first place). Despite what many people seem to think, the only way that a <meta> tag could be useful like that is if the webserver serves no encoding with its Content-Type header, which would be a sign of a broken webserver configuration in my eyes (since there are documents that can be served from a webserver for which it is not possible to specify an encoding in the document itself). This <meta> tag is only there in case the user saves the page locally and re-opens it later, in which case the browser will not have the Content-Type header to go by.
    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!

  6. The Following User Says Thank You to Twey For This Useful Post:

    jscheuer1 (08-17-2008)

  7. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Thanks Twey. I was wondering about it because I had to add fonts or something at one one point to see your:

    Quote Originally Posted by Twey
    Location: 英国
    properly.

    So you are saying that any browser will see the Asian characters if served as such. I do recall that before adding the support (whatever it was) to see your location thing, that some sites I loaded did display Asian characters. I guess that they were being served properly for those characters. No way (from my limited perspective in this regard) for me to know for sure though, they could have been entities.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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

    Default

    That was a case of your system not having the appropriate fonts. Vietnamese is written in a Latinate script, and should be supported in most Western fonts.
    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!

  9. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by Twey View Post
    That was a case of your system not having the appropriate fonts. Vietnamese is written in a Latinate script, and should be supported in most Western fonts.
    Just to be painfully clear for both myself and others -

    If the page is served with the proper encoding:

    Yes, the user must have the required fonts installed.

    or:

    No, the user fonts are immaterial.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  10. #9
    Join Date
    Feb 2007
    Location
    🌎
    Posts
    528
    Thanks
    10
    Thanked 10 Times in 10 Posts
    Blog Entries
    2

    Default

    Both.
    Quote Originally Posted by Twey
    tôi ít hiểu tiếng Việt
    This string contains ể and ệ, which are not supported in most fonts.
    However, Arial and Times New Roman support them. One of these fonts is available on almost all systems with a GUI.
    ....(o_ Penguins
    .---/(o_- techno_racing
    +(---//\-' in
    .+(_)--(_)' The McMurdo 500

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

    Default

    Yes, of course one cannot see any text without the appropriate fonts. However, I think that Vietnamese text will be viewable with only the default fonts on most common operating system installations.
    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!

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
  •