Le 22 déc. 2011 à 10:42, Alexander Reichstadt a écrit :

> OK, I found a way to import it into FileMaker. It looks good when I use DOS 
> Encoding. But when I use kCFStringEncoding derivates I had no luck. I know CF 
> and NSString is toll free bridged, but does this apply to the encodings as 
> well? There is some post from 2000 by Ali Ozer that would suggest it's not 
> the case

No. NS and CF encoding don't have the same value.

You can use CFStringConvertEncodingToNSStringEncoding() and 
CFStringConvertNSStringEncodingToEncoding() to convert encoding.


> 
> 
> Am 22.12.2011 um 10:24 schrieb Vincent Habchi:
> 
>>> Yes, tried NSUTF8StringEncoding, I really tried all the ones I found in the 
>>> NSString encoding documentation.
>>> 
>>> When I import this file as DBF into FileMaker Pro it looks just as bad. But 
>>> when I import it into a MySql it works fine.
>>> 
>>> Here an example of what NSLog says:
>>> 
>>>   "R\U0094h.",
>>>   "R\U0094hrchen"
>>> 
>>> It should instead say Röhrchen.
>> 
>> It looks like you string is UTF-16 based (\U0094 looks like UTF-16).
>> But ö should be \U00F6, not \U0094 or 0xC3 0xB6 in UTF-8.
>> 
>> Something is rotten in your tubes! ;)
>> 
>> Cheers,
>> Vincent
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org
> 
> This email sent to devli...@shadowlab.org

-- Jean-Daniel




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to