Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted

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?

Posted

You can enclose your text in the following tag:

<span lang="TH" style="font-size: 16.0pt; font-family: Angsana New">ยินดี</span>

Mick

Posted

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.

Posted
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:

post-21260-1160769266_thumb.jpg

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

The single biggest problem in communication is the illusion that it has taken place. — George Bernard Shaw

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.



×
×
  • Create New...