• 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: Working with Unicode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Working with Unicode


  • Subject: Re: Working with Unicode
  • From: Deborah Goldsmith <email@hidden>
  • Date: Thu, 30 Mar 2006 15:37:29 -0800

"\" is an escape character. Have you tried:

MY_CONSTANT = "\\resign";

Deborah Goldsmith
Internationalization, Unicode liaison
Apple Computer, Inc.
email@hidden

On Mar 30, 2006, at 2:39 PM, Julio Cesar Silva dos Santos wrote:

Hello,

I am trying to work with some unicode characters, especially the '\' (backslash) and I thought it would be easy but it is not. Here what I tried:
1) Created a Localizable.strings file with the characters, for example MY_CONSTANT = "\resign";


2) When I load MY_CONSTANT it looks like " esign" (the space in fact becomes a new line)

3) Changed to MY_CONSTANT = "\U005Cresign". (5C is the code for \)

4) Now it looks like "\\resign".

5) Changed to MY_CONSTANT = "\U005C\U0072esign". (72 is the code for r)

6) Now it continues to look like "\\resign".

Well, is there a way that I can have MY_CONSTANT returning "\resign"? Or do I have to take another approach?

Thanks for any help,


Julio Cesar Santos email@hidden eMac 1GHz ComboDrive 640MB RAM Linux User #359973


_______________________________________________ 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

_______________________________________________ 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
References: 
 >Working with Unicode (From: Julio Cesar Silva dos Santos <email@hidden>)

  • Prev by Date: Re: Working with Unicode
  • Next by Date: Re: Working with Unicode
  • Previous by thread: Re: Working with Unicode
  • Next by thread: NSUndoManager across multiple nibs
  • Index(es):
    • Date
    • Thread