Page 1 of 1
PersonalData->name -> UTF-8 [solved]
Posted: Mon Jul 05, 2010 10:07 pm
by Jens
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?
Re: PersonalData->name -> UTF-8
Posted: Tue Jul 06, 2010 1:03 am
by vuurrobin
Re: PersonalData->name -> UTF-8
Posted: Tue Jul 06, 2010 4:14 am
by Jens
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]
Posted: Tue Jul 06, 2010 11:21 am
by StevenH
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.