ASCII Latin N

11 views
Skip to first unread message

William Frowine, PMP

unread,
Jun 26, 2012, 2:23:40 PM6/26/12
to pdx-cocoa...@googlegroups.com
Hello:

Does anyone know what hte ASCII superscript n is. I can do an ascii squared symbol by doing %B2 but I can't seem to find one for n.

Thanks!


Justin R. Miller

unread,
Jun 26, 2012, 2:28:57 PM6/26/12
to pdx-cocoa...@googlegroups.com
I have been using these tables for years for this sort of thing:

http://december.com/html/

However I couldn't find it there, but did find this:

http://www.fileformat.info/info/unicode/char/207f/index.htm

JM
--

Justin R. Miller
http://codesorcery.net

William Frowine, PMP

unread,
Jun 26, 2012, 2:36:13 PM6/26/12
to pdx-cocoa...@googlegroups.com
Thanks Justin. Still searching for an ascii superscipt n. Haven't found it yet. Not sure if superscript n is in the ascii table. I did see the unicode character but I am having issues with the escape character. Still not the end of the world.

-Bill

Doug Mason

unread,
Jun 27, 2012, 12:17:30 AM6/27/12
to pdx-cocoa...@googlegroups.com
That is because the Superscript variant of 'n' doesn't actually exist within the ASCII character set. 
You would use unicode to do this, and in order to get an NSString with Unicode, for instance for x^n in superscript would be the following:

NSString *example = [NSString stringWithUTF8String:"x\u207F "];

Hopefully that helps,


Doug

Northwest Mobile Development LLC

unread,
Jun 27, 2012, 1:13:45 AM6/27/12
to pdx-cocoa...@googlegroups.com
Thanks Doug.  
Reply all
Reply to author
Forward
0 new messages