Jump to content

Recommended Posts

Posted

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?

Posted

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>

Posted

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.

Posted

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.

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

Posted

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

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

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

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...