Re: Converting String Representations at Runtime

2009-04-20 Thread Michael Ash
On Sat, Apr 18, 2009 at 4:44 PM, John Joyce wrote: > CFStringTransform does exactly what I wanted to do. > It even pretty gracefully handles the whole string supplied. > (no idea to how far mileage would vary with this based on supplied string > size or content... maybe somebody from apple can com

Re: Converting String Representations at Runtime

2009-04-20 Thread John Joyce
Is there an easy way to take input (user or file based) at runtime and convert unicode strings such as \u8D64 (UTF8 character) or a whole series of these to the human-readable characters they represent? I imagine I should be using NSScanner, but is there not some simple function or method to

Re: Converting String Representations at Runtime

2009-04-12 Thread Adam R. Maxwell
On Apr 12, 2009, at 3:01 PM, John Joyce wrote: Is there an easy way to take input (user or file based) at runtime and convert unicode strings such as \u8D64 (UTF8 character) or a whole series of these to the human-readable characters they represent? I imagine I should be using NSScanner, but

Re: Converting String Representations at Runtime

2009-04-12 Thread Michael Ash
On Sun, Apr 12, 2009 at 10:51 PM, Ken Thomases wrote: > The above is failing to take into account the assumed knowledge that the > code points won't be more than 4 characters long.  What if you follow a > \u sequence with characters (not intended to be part of the \u sequence) > in the [0-9a-f

Re: Converting String Representations at Runtime

2009-04-12 Thread Ken Thomases
On Apr 12, 2009, at 9:21 PM, Michael Ash wrote: On Sun, Apr 12, 2009 at 6:01 PM, John Joyce wrote: Is there an easy way to take input (user or file based) at runtime and convert unicode strings such as \u8D64 (UTF8 character) or a whole series of these to the human-readable characters they

Re: Converting String Representations at Runtime

2009-04-12 Thread Michael Ash
On Sun, Apr 12, 2009 at 6:01 PM, John Joyce wrote: > Is there an easy way to take input (user or file based) at runtime and > convert unicode strings such as \u8D64 (UTF8 character) or a whole series of > these to the human-readable characters they represent? > I imagine I should be using NSScanne