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
#2

anyone has a Rx?
Reply
#3

UP...
Reply
#4

IIRC pawn dosn't display hanji/kanji correctly unless you use a third party plugin, so you probably are loading it correctly but pawn isn't displaying it.
Reply
#5

Quote:
Originally Posted by Mionee
Посмотреть сообщение
IIRC pawn dosn't display hanji/kanji correctly unless you use a third party plugin, so you probably are loading it correctly but pawn isn't displaying it.
Yea , I think so.
Reply
#6

UP...
Reply
#7

UP...

anyone help me? pls.
Reply
#8

up。。
Reply
#9

You are loading them, but SA-MP can't display them.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)