Forum Moderators: open
I have php 4 and I'm running Mysql 5
for Mysql i have :
MySQL charset: UTF-8 Unicode (utf8)
MySQL connection collation: is utf_8_unicode_ci
For my html I have a meta tag :
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
I can't seem to get these Vietnamese characters to show up.
I really need help before i pull all my hair out.
Thanks,
Ehrin
<Sorry, no urls or site reviews.
See Forum Charter [webmasterworld.com]>
[edited by: tedster at 5:31 pm (utc) on April 18, 2007]
encoding for thai and vietnamese [webmasterworld.com]
Not had and problems using charset UTF-8 in the <meta>, the data is stored in the DB using the DBI 'quote' function, not sure if it actually alters it, I know it's similar to escaping characters. And I don't know how the PHP MySQL functions work.
The other thing you could try is escaping the content to store it and unescaping it to print it to the page.
You really need to find out if it's being stored in the DB correctly first.
I can't seem to get these Vietnamese characters to show up.
What is happening exactly when you view the page? Do you get lots of little squares, or lots of strange characters?
If the former, then probably the content is in UTF-8 but you don't have the required font to display it. If the latter then the content is either in a different charset to UTF-8 (try changing the charset in the browser to one of the legacy Vietnamese ones to identify it), or the content is in UTF-8 but the page is served as a different charset (press Ctrl+I in Firefox to see what encoding is being used).