SOLVED!
My stupid error: passing address of value instead of just value.
Thanks very much for your help. Character displays correctly.
On Aug 11, 2009, at 1:30 PM, Daniel Child wrote:
Thank you. I think I'm almost there, though I'm getting incorrect
values. I tried both %c and %C. These yi
Daniel Child wrote:
NSString *strc = [NSString stringWithFormat: @"%c", &value];
...
NSString *strC = [NSString stringWithFormat: @"%C", &value];
These are both wrong. Remove the & before value.
http://developer.apple.com/documentation/Cocoa/Conceptual/Strings/
Articles/formatSpecifiers.html
Thank you. I think I'm almost there, though I'm getting incorrect
values. I tried both %c and %C. These yield, respectively, î and ,
which are incorrect.
2009-08-11 13:24:58.879 ParseTest[566:10b] The num is U+4E01
2009-08-11 13:24:58.889 ParseTest[566:10b] codeItself is 4E01
2009-08-11 13:
On Aug 11, 2009, at 7:40 AM, Daniel Child wrote:
Unihan.txt provides text files showing characters in the format U
+.
If I scan these in, naturally I can obtain the NSString
representation .
But I need to convert this text to genuine unichars OR NSStrings
(the actual characters repr
On 11 Aug 2009, at 15:40, Daniel Child wrote:
Unihan.txt provides text files showing characters in the format U
+.
If I scan these in, naturally I can obtain the NSString
representation .
But I need to convert this text to genuine unichars OR NSStrings
(the actual characters represen