• 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: Converting unicode strings to its values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting unicode strings to its values


  • Subject: Re: Converting unicode strings to its values
  • From: Dave Keck <email@hidden>
  • Date: Tue, 10 Mar 2009 23:27:23 -1000

Hey,

Try [NSString stringWithUTF8String: "\u00d6"];

David

On Tue, Mar 10, 2009 at 10:23 PM, Christian Netthöfel <email@hidden> wrote:
> Hi Everyone,
>
> I'm quite new to Cocoa-development and have a question regarding the
> conversion of unicode-representations. I have a string containing the
> unicode values for umlauts or other special characters as strings. What I
> want to do  is to convert them to their real unicode value so that the
> characters are displayed.
>
> Example:
>
> "\u00d6" should become "ö"
>
> Note that "\u00d6" is not the same as \u00d6, I hope you understand what I
> want do say :)
>
> TIA
> Christian_______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
>
> This email sent to email@hidden
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >Converting unicode strings to its values (From: Christian Netthöfel <email@hidden>)

  • Prev by Date: code for drawing an NSTextField to a panel window ...
  • Next by Date: A minimal InputManager bundle
  • Previous by thread: Re: Converting unicode strings to its values
  • Next by thread: Synthesized instance variables
  • Index(es):
    • Date
    • Thread