• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dealing with non-standard character sets...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 08:54:08 -0400

Aki,

Thanks for the tip - do you put the unicode characters in an array of shorts or an array of char?

Also, I don't know about HP Roman8 - this character set dates back to (IIRC) the late 70's, early 80's when the first HP alphanumeric calculators appeared. I know it's been used in the HP41-49G+ models, but I don't know if it was ever used in their larger machines.

Thanks again.

On Oct 8, 2005, at 2:05 AM, Aki Inoue wrote:

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
References: 
 >Dealing with non-standard character sets... (From: Michael Heinz <email@hidden>)
 >Re: Dealing with non-standard character sets... (From: Ricky Sharp <email@hidden>)
 >Re: Dealing with non-standard character sets... (From: Michael Heinz <email@hidden>)
 >Re: Dealing with non-standard character sets... (From: Douglas Davidson <email@hidden>)
 >Re: Dealing with non-standard character sets... (From: Andy Armstrong <email@hidden>)
 >Re: Dealing with non-standard character sets... (From: Douglas Davidson <email@hidden>)
 >Re: Dealing with non-standard character sets... (From: Michael Heinz <email@hidden>)
 >Re: Dealing with non-standard character sets... (From: Aki Inoue <email@hidden>)

  • Prev by Date: Re: Dealing with non-standard character sets...
  • Next by Date: Re: Dealing with non-standard character sets...
  • Previous by thread: Re: Dealing with non-standard character sets...
  • Next by thread: Re: Dealing with non-standard character sets...
  • Index(es):
    • Date
    • Thread