Author Topic: Apostrophes in Labels  (Read 3157 times)

sybixsus

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Apostrophes in Labels
« on: May 10, 2013, 08:41:12 PM »
Hi,

For some reason, I don't get apostrophes in my UILabels when I set them programatically. If I enter the text manually in the editor, it seems to be working, so the font is clearly correct. I assume that this is a text encoding issue. The actual label text is a string which is built from string literals and a chunk of text from a Spaghetti Machine graph, and I set the UILabel.text property. Do I need to do some kind of encoding in order to make this work correctly?

EDIT: I just tested string literals alone and that works fine too. So I presume it's something from the text I'm getting from the Spaghetti Machine graph, but not sure what encoding you need or how I would go about it. Perhaps if you can tell me what it should end up as and the SM developer can tell me what it's starting as, I can fill in the gaps.


Regards

Phil
« Last Edit: May 10, 2013, 09:30:15 PM by sybixsus »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Apostrophes in Labels
« Reply #1 on: May 11, 2013, 01:09:15 AM »
I save my code files as UTF-8 with signature, that works fine.