Page 1 of 1
[UDP API] Content Encoding (PHP Issue)
Posted: Wed Dec 27, 2006 7:08 am
by KnightAR
A while ago, I've successfully been able to get the Kanji of an anime from the UPI server with php, now I cant. Basicly it's coming up as ????? instead of 星界の戦旗 for example. I have tried to change it to enc=utf8, but now they come up as 超時空騎団サザンクãƒã‚¹ ... Anyone have any idea how to fix this?
Thanks
- KnightAR
Posted: Wed Dec 27, 2006 8:33 am
by ricce
You need to convert the UTF-8 to the local encoding...
I haven't read the udp API specs. but you may be able to tell the server your local locale using the auth line, as you specified utf-8. To me it look like you use some variant of iso-latin, witch can't view Kaji characters at all.
How this is done, depends on system and programming language.
Posted: Tue Jan 09, 2007 3:48 am
by KnightAR
Your right, The default character set on the server was set to latin1. I changed it via mysql after connecting and it stores everything correctly now. Thanks much!
- KnightAR