Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: IceXaos on December 24, 2010, 06:25:25 AM

Title: Foreign Languages
Post by: IceXaos on December 24, 2010, 06:25:25 AM
I have installed and switched all users to English UTF-8, though I'm still unable to post in other languages.  An example would be attempting to post Русский and getting ??????? once posted, but it does show correctly in a preview.
Title: Re: Foreign Languages
Post by: Illori on December 24, 2010, 06:59:25 AM
do you have your database utf-8?
Title: Re: Foreign Languages
Post by: IceXaos on December 24, 2010, 07:38:05 AM
Changed database collation to uft8_general_ci and the problem persists.

To be exact:
ALTER DATABASE `MYDATABASE` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci
Title: Re: Foreign Languages
Post by: IceXaos on December 24, 2010, 07:49:46 AM
Before I select the language, it says the character set for it is UTF-8, but once I select it, it changes to ISO-8859-1.
Title: Re: Foreign Languages
Post by: IceXaos on December 24, 2010, 08:52:12 AM
Okay, it's the database somehow because I attempted converting to UTF-8 from HTML entities and it changed them to ?'s.  I also tried to use an UPDATE query setting the body to use Cyrillic characters, and it gave an error:
0 row(s) affected.
Warning: #1366 Incorrect string value: '\xD0\xA0\xD1\x83\xD1\x81...' for column 'body' at row 1


I'm not sure what to do.  The overall database is set to utf8 general ci as well as the messages table.
Title: Re: Foreign Languages
Post by: IceXaos on December 24, 2010, 08:58:26 AM
Figured out the column was still latin.  I just gotta figure out how to change all tables/columns to utf8 general and I'm good to go.  Any ideas on how to do this?
Title: Re: Foreign Languages
Post by: IceXaos on December 24, 2010, 09:31:04 AM
got it
Title: Re: Foreign Languages
Post by: IceXaos on December 24, 2010, 09:31:24 AM
Sorry for all the spam, but posting as I do things helps me think of solutions.
Title: Re: Foreign Languages
Post by: NanoSector on December 24, 2010, 09:42:13 AM
Quote from: IceXaos on December 24, 2010, 09:31:24 AM
Sorry for all the spam, but posting as I do things helps me think of solutions.
Haha lol I can see

Good you got it solved though.