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?
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?
If, in your<head>section, you see:
, change it to:Code:<meta http-equiv="Content-Type" content="text/html; charset=something">
Otherwise, just put:Code:<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
in yourCode:<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><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
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!
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
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!
jscheuer1 (08-17-2008)
Thanks Twey. I was wondering about it because I had to add fonts or something at one one point to see your:
properly.Originally Posted by Twey
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
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!
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Both.
This string contains ể and ệ, which are not supported in most fonts.Originally Posted by Twey
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
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