Re: Unicode - Converting memory to match NSCell -stringvalue?
Re: Unicode - Converting memory to match NSCell -stringvalue?
- Subject: Re: Unicode - Converting memory to match NSCell -stringvalue?
- From: Chris Ridd <email@hidden>
- Date: Fri, 30 May 2003 13:15:51 +0100
On 30/5/03 12:10 pm, Finlay Dobbie <email@hidden> wrote:
>
On Friday, May 30, 2003, at 01:54 am, ruffnex wrote:
>
>
> I have a file in ProjectBuilder, promoted to UTF-8, containing a
>
> constant string: @"....4chars" (where . is a Chinese character).
>
>
I'm pretty sure that there are issues with string constants in strange
>
encodings. @"\u97f3\u9891\u63d2\u4ef64chars" might work, though.
The OP noted that both strings displayed identically in the textfield, so
presumably the strings are "OK" albeit different. I'm wondering if the
problem is really that one of the strings is decomposed Unicode and the
other one isn't. I did have a quick go at using NSString's
{pre,de}composedStringWith{Canonical,Compatibility}Mapping methods, but was
unable to turn the former string into the latter. That might be due to my
ineptitude of course!
Cheers,
Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.