youngkiwi Posted October 12, 2006 Share Posted October 12, 2006 I have a brief question which I am hoping you may be able to assist with. I am trying to setup a web page with thai characters. The following text is in Thai unicode which displays correctly in HTML ขอบคุณลูกค้าทุกท่านที่ให้สละเวลามาเยี่ยมชมเวปไซด์ของเรานะค่ะ ทางร้านเราได้จำหน่ายกระเป๋า รองเท้า และ The following text is another form of Thai encoding which displays correctly in HTML ÊÔ¹¤éÒãËÁèÊÓËÃѺà´×͹ %s' My query is how can I input/save the thai characters to be in the same format as the second text example above. Appreciate any assistance you can offer. Link to comment Share on other sites More sharing options...
tom yum goong Posted October 12, 2006 Share Posted October 12, 2006 u need to declare the encoding in the head of your document, e.g. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> for Thai u can also use the following: Windows-874 TIS-620 ISO-8859-11 Link to comment Share on other sites More sharing options...
youngkiwi Posted October 12, 2006 Author Share Posted October 12, 2006 Thanks for your reply, however I am trying to ascertain what encoding/unicode format this text is: ÊÔ¹¤éÒãËÁèÊÓËÃѺà´×͹ %s' The above text, when viewed on a web browser using standard Thai windows encoding, produces the correct Thai characters. The real question is, how can I find out what this is so I can add to it? Link to comment Share on other sites More sharing options...
bkkmick Posted October 12, 2006 Share Posted October 12, 2006 (edited) You can enclose your text in the following tag: <span lang="TH" style="font-size: 16.0pt; font-family: Angsana New">ยินดี</span> Mick Edited October 12, 2006 by bkkmick Link to comment Share on other sites More sharing options...
youngkiwi Posted October 12, 2006 Author Share Posted October 12, 2006 To clarify, I am wanting to know how to generate the following text example: ÊÔ¹¤éÒãËÁèÊÓËÃѺà´×͹ %s' This example is displayed correctly as Thai characters in a browser. The issue has nothing to do with the encoding type specified in the html, but rather - how do I generate the characters to appear in whatever code the above example is in. Link to comment Share on other sites More sharing options...
Maestro Posted October 13, 2006 Share Posted October 13, 2006 (edited) Thanks for your reply, however I am trying to ascertain what encoding/unicode format this text is:ÊÔ¹¤éÒãËÁèÊÓËÃѺà´×͹ %s' The above text, when viewed on a web browser using standard Thai windows encoding, produces the correct Thai characters. The real question is, how can I find out what this is so I can add to it? For your information, this is how your sample text displays on my computers, both in Firefox and in Microsoft Internet Explorer: The ThaiVisa web page does not specify a character set (encoding) and the afore-mentioned two browsers have selected “Western European (ISO)” on my computers. Validating this web page on http://validator.w3.org defaults, in the absence of a charset specification, to “iso-8859-1” Therefore, if your question is “What charset do I have to specify so that text written in Thai will display like the gibberish shown in the example?”, the answer is iso-8859-1. --------------- Maestro Edited October 13, 2006 by maestro Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now