PersonalData->name -> UTF-8 [solved]
PersonalData->name -> UTF-8 [solved]
Boring question coming up. I'm currently using UTF-8 as my unicode support. I want to access PersonalData->name which tells me it's stored as UTF-16. I've searched the Internet wide on how convert it and I'm come up short, which feels a bit strange as I thought it was a really simple problem. I tried using wcstombs(), but that doesn't seem to work for me. Anyone out there who knows this stuff?
Last edited by Jens on Tue Jul 06, 2010 4:14 am, edited 1 time in total.
Re: PersonalData->name -> UTF-8
a quick search gave me this: http://www.deanlee.cn/programming/conve ... e-to-utf8/
see if that works.
see if that works.
Re: PersonalData->name -> UTF-8
Well, sir, your Google skills are obviously more refined than mine, because that looks exactly like what I need. Thanks a bunch.
Re: PersonalData->name -> UTF-8 [solved]
Actually the correct code set for the Personal Data is not UTF-16, it's UCS2, which is very close to UTF-16 that the conversion code will work, but there are a couple of minor differences in the coding of the glyphs above 65535 or 0x0000FFFF in the Unicode pages.
Who is online
Users browsing this forum: No registered users and 0 guests