some charsets questions

A

Anonymous

Guest
Hi,

My test platform is Apache2/PHP 4.2.2 as module/MySQL 3.23.49/ under Windows XP (Sofia, Bulgaria).

My default charset for MySQL is IS0-8859-1,
but i think ISO-8859-1 can't store cirillyc chars
so the real store is in win1251.

when i make a php/mysql query it seems that the result is
in win1251 characters.

... and the problem is that i want to output UTF-8 chars,
because i want to comunicate with flash mx.
utf8_encode didn't work because it expects ISO-8859-1.
mb_ functions also seems that can't convert win1251 to UTF-8.

If somebody can help me with my purpose to output UTF-8 chars
from my PHP/MysqL script or give me some references i'll be
very thaksfull.

Best regards, Stanislav
 
Hello!

Try to use this:

Code:
iconv_set_encoding("internal_encoding", "ISO-8859-1");
iconv_set_encoding("output_encoding", "UTF-8");

or somethig like this.

I'm from Bulgaria too :)
-----------------------------------------
Bereza Nikita
Rapid Internet Development Department
E-mail: nike@alarit.com
Alar Information Technologies,
URL: http://www.alarit.com
 
Back
Top