Welcome Guest, Not a member yet? Register   Sign In
Encoding webpage to UTF-8 ,But my language is incorrect !
#1

[eluser]Unknown[/eluser]
view file save as ASCII file type
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Test UTF-8&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
ภาษาไทย
&lt;/body&gt;
&lt;/html&gt;

-Display in browser
??ʍ??ɒ䷂

-View page source
ภาษาไทย

-----------------------------------------------------------------
When i save view file to UTF-8 file type

-Display in browser
ภาษาไทย

-View page source
??ʍ??ɒ䷂


-----------------------------------------------------------------
I need to "Display in browser" like "View page source" : ภาษาไทย

thanks.
#2

[eluser]Huan[/eluser]
Looks like the text editor causes it. I think you could try a UTF8-encoded text file and type/paste your text into it from beginning. This sometimes happens to me.




Theme © iAndrew 2016 - Forum software by © MyBB