0

I am trying to display an Euro symbol coded like that

€

or

&#x20AC (that is what I get when I print the NSString variable containing the symbol code)

in ObjectiveC. I tried to use format like "%@" and "%C" but it doesn't work. How can I convert it to displayable form or display that form?

matrejek
  • 400
  • 1
  • 4
  • 15
  • possible duplicate of [Objective C HTML escape/unescape](http://stackoverflow.com/questions/659602/objective-c-html-escape-unescape) – Martin R Apr 15 '14 at 15:56
  • `&` and `#x20AC;` are so-called HTML (or XML) character entity references. The "possible duplicate" question has various answers that show how to convert these in an NSString. – Martin R Apr 15 '14 at 16:37

1 Answers1

0

Use

NSString *yourString = @"\u20AC";

enter image description here

Avt
  • 16,927
  • 4
  • 52
  • 72