• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unicode - Converting memory to match NSCell -stringvalue?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Unicode - Converting memory to match NSCell -stringvalue?
      • From: ruffnex <email@hidden>
References: 
 >Re: Unicode - Converting memory to match NSCell -stringvalue? (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: Unit test tool
  • Next by Date: Re: Accessing objective-c from c
  • Previous by thread: Re: Unicode - Converting memory to match NSCell -stringvalue?
  • Next by thread: Re: Unicode - Converting memory to match NSCell -stringvalue?
  • Index(es):
    • Date
    • Thread