UTF8 question.
UTF8 question.
- Subject: UTF8 question.
- From: "Manish shrikant shet" <email@hidden>
- Date: Wed, 24 Aug 2005 13:41:51 +0530
- Thread-topic: UTF8 question.
Hi List,
I am a Cocoa developer involved in writing application interoperable between Mac and Windows. While localizing the application in Japanese, I am observing some interoperable issues with some Japanese composite characters. Some of the these characters are resolving to different UTF8 characters on Mac and Windows. On Mac I am using the UTF8String method on a NSString object to get the UTF8 string. On Windows I am using the MultiByteToWideChar() function to convert a string in the local code page into Unicode. I am using the MB_COMPOSITE option here. The uncicode string is then being converted into UTF8 string by using the function WideCharToMultiByte(). The UTF8 characters obtained by following this process seem to differ on Mac and Windows.
As an example, I am providing the wide char and UTF8 strings I am obtaining on both Mac and Windows for a couple of Japanese Characters. Any pointers on how to resolve this problem will be highly appreciated.
1) ?
wide char values
Win: C0 30 (little endian)
Mac: 30 BF 30 99 (big endian)
utf-8 -> Byte values
Win: E3 83 80
Mac: E3 82 BF E3 82 99
2)?
wide char values
Win: C9 30 (little endian)
Mac: 30 C8 30 99 (big endian)
utf-8 -> Byte vales
Win: E3 83 89
Mac: E3 83 88 E3 82 99
Regards,
Manish
This message is free from Virus - IMSS
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden