Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: pcdinh - tammikuu 03, 2006, 01:36:30 AP

Otsikko: SMF 1.1rc2: All utf-8 is truncated upon posting
Kirjoitti: pcdinh - tammikuu 03, 2006, 01:36:30 AP
Please help me.

I just upgrade my forum to RC2 but It can fix some utf-8 character display. Moreover, it truncates all my utf-8 characters appeared in each post. :'(

My initial call for help below will provide with more details:

http://www.simplemachines.org/community/index.php?topic=63705.0

All of my data is stored in utf-8 table. I have changed the table property from latin1 to utf-8 to make it compatible with my utf-8 data. I also add @mysql_query("SET NAMES UTF8") to make the database connection compatible with utf-8 characters but with it, all posts will be truncated unless I post an English entry. Without it, it works. Nothing will be truncated but my old utf-8 data will be displayed incorrectly.


Thanks in advance.

http://www.goldenkey.edu.vn/vi/forum
Otsikko: Re: SMF 1.1rc2: All utf-8 is truncated upon posting
Kirjoitti: xenovanis - tammikuu 03, 2006, 08:55:24 AP
http://www.simplemachines.org/community/index.php?topic=63705.msg441305#msg441305