Skip to content
View in the app

A better way to browse. Learn more.

Thailand News and Discussion Forum | ASEANNOW

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How To Use Thai Charset In Web Page

Featured Replies

I'm trying to create a web page using Dreamweaver. I have Apache server running on my PC to test the web page out. The web page is mostly English but uses a few sentences in Thai language (ภาษาไทย). When I try to save this in Dreamweaver, I get the following warning:

"The document's current encoding can not correctly save all the characters within the document. You may want to change to UTF-8 or an encoding that supports the special characters in this document."

After reading the warning, I added this to the head element:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

However, the same message pops up and the web page does not display correctly.

For your reference, I've followed some instructions on http://www.alanwood.net/unicode/htmlunicode.html

Any suggestions?

This works for me:

<html>

<head>
<meta http-equiv="Content-Language" content="th">
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<title>เดิทืทททท</title>
</head>

<body>

<p>testเดิทืททท</p>


</body>

</html>

Edited by friend2

  • Author
This works for me:
<meta http-equiv="Content-Language" content="th" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Edited by brianbrain

You can keep the utf8 encoding if you want.

What's important is:

<meta http-equiv="Content-Language" content="th">

Size and font you can always change.

I'm only writing this so I get emails whenever someone adds to the thread. http://www.chinarice.org displays Thai characters correctly on computers where Thai is the default language but not on others. I've received a lot of good information on how to correct this, but it would involve an ungodly amount of typing, so I'm watching and waiting.

You can keep the utf8 encoding if you want.

What's important is:

<meta http-equiv="Content-Language" content="th">

Size and font you can always change.

If you save the file as true UTF8 then you do not need any meta tags. UTF8 allows you to use any unicode language in the same page, so you can mix western, thai, chinese, japanese etc etc in the same page. I don't know about dreamweaver, but you probably have an option somewhere that specifies file format/encoding. If not, you can open it up in Notepad, select "save as" and select "UTF8" in the encoding dropdown.

Lingling,

I believe this is why I wanted to subscribe to this thread. I'm a bit strung-out from a road trip to Vientiane on Wednesday and a return this morning, with many adventures in between, but I'm gonna try this when my mind returns to what it claims is normalcy.

Michael

Lingling,

I believe this is why I wanted to subscribe to this thread. I'm a bit strung-out from a road trip to Vientiane on Wednesday and a return this morning, with many adventures in between, but I'm gonna try this when my mind returns to what it claims is normalcy.

Michael

I attached a small sample html file with utf8 encoding that mixes western, thai, japanese, chinese, korean and russian in the same sentence.

I don't know about dreamweaver, but you probably have an option somewhere that specifies file format/encoding.

There is indeed an option in Dreamweaver-

Open the "Modify" menu at the top of the page, and choose the first option- "Page Properties".

On the left side of the dialogue box, open the "Title / Encoding" category. You can choose the "Unicode (UTF-8)" Encoding from a drop down selector. Click "OK" to save your selection and exit the dialogue.

Alternatively, you can open the Page Properties using CTRL-J, or from a button on the properties toolbar.

And here we go, folks. Does http://www.chinarice.org/ look Thai to you now? I added two new lines to the header, and they are:

<meta http-equiv="Content-Language" content="th">

<meta http-equiv="Content-Type" content="text/html; charset=windows-874">

Happy New Year!

Michael

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.