How to load Chinese character from MySQL?
#1

Hello guys.
I have tried to load some Chinese character from Mysql.
Код:
    Mysql -> charset = UTF-8
my filed just like:
Код:
[filed]
name

[value]
"名字"
And when I load the Chinses character, I printf it.

Код:
    new playerName[MAX_PLAYER_NAME];
    cache_get_field_content(0, "name", playerName, 1, MAX_PLAYER_NAME);
    printf("%s", name);
--------------------------------------------------------------------------------------------------------
output:

    "????"
so I think its not a charset problem.

anyone give me a suggestion??

Thanks for all replier.
Reply


Messages In This Thread
How to load Chinese character from MySQL? - by iLuXing - 30.12.2014, 16:34
Re: How to load Chinese character from MySQL? - by iLuXing - 30.12.2014, 16:53
Re: How to load Chinese character from MySQL? - by iLuXing - 30.12.2014, 17:52
Re: How to load Chinese character from MySQL? - by Dignity - 30.12.2014, 17:55
Re: How to load Chinese character from MySQL? - by iLuXing - 30.12.2014, 18:05
Re: How to load Chinese character from MySQL? - by iLuXing - 31.12.2014, 01:28
Re: How to load Chinese character from MySQL? - by iLuXing - 31.12.2014, 06:32
Re: How to load Chinese character from MySQL? - by iLuXing - 31.12.2014, 15:48
Re: How to load Chinese character from MySQL? - by Dignity - 31.12.2014, 15:56

Forum Jump:


Users browsing this thread: 2 Guest(s)