Re: Dealing with non-standard character sets...
Re: Dealing with non-standard character sets...
- Subject: Re: Dealing with non-standard character sets...
- From: Michael Heinz <email@hidden>
- Date: Sat, 8 Oct 2005 11:16:28 -0400
I'm sorry I'm being so dense but...
Do I want to use the unicode literal value (a 16 bit uint) or the
UTF8 encoding for the character.
For example, a hatched box is 0x25a6 in unicode, but 0xe2 0x96 0xa6
in UTF8....
On Oct 8, 2005, at 7:24 AM, Andy Armstrong wrote:
On 8 Oct 2005, at 03:12, Michael Heinz wrote:
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?
Use a lookup table to translate the bytes into unichars and then
[NSString stringWithCharacters: <#(const unichar *)characters#>
length:<#(unsigned)length#>
I'm not sure what the best way to address the problem of finding a
font that actually contains the characters is I'm afraid.
--
Andy Armstrong, hexten.net
_______________________________________________
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