Re: Dealing with non-standard character sets...
Re: Dealing with non-standard character sets...
- Subject: Re: Dealing with non-standard character sets...
- From: Aki Inoue <email@hidden>
- Date: Fri, 7 Oct 2005 23:05:24 -0700
You can create NSString from UTF-16 characters using
+stringWithCharacters:length:.
You can map each byte in the source to corresponding UTF-16 value
(i.e. 'a' -> 0x0061).
It ain't UTF anything. It's "HP ASCII" - 7 bit ASCII with another
127 characters reserved for various math symbols.
Do you mean HP Roman8 ?
It's the original HP-UX roman encoding. If so, you can use iconv()
to map to UTF-16 for you on Panther or later.
Aki
Well, since you posted I've been looking at the unicode support
documents; it appears that I can find all the characters I need (or
analogs) but not in one font. Worse, the documentation isn't very
clear. I can see creating a mapping function that traverses a C
string and maps the ASCII to Unicode constants - but I can't see
how to create unicode characters; NSStrings contain them, it seems,
but how do I create the strings in the first place?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden