• 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
Glyph's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Glyph's


  • Subject: Glyph's
  • From: Mathew Peterson <email@hidden>
  • Date: Sun, 27 Apr 2003 20:03:48 +1000

I have an old file (I assume encoded in NSMacOSRomanStringEncoding)
that I need to decode into something I can use in Cocoa (particularly a
string).

Now I have this code:

[stringOut setStringValue:[[[NSString alloc] autorelease]
initWithData:[[NSString stringWithFormat:@"ElE4E0Gh"]
dataUsingEncoding:NSMacOSRomanStringEncoding]
encoding:NSUnicodeStringEncoding]];

Which is a fragment of Glyph which spells out some Japanese characters.
I know the file is NSMacOSRomanStringEncoding because when I set my
string value with encoding NSUTF8StringEncoding it produces my glyph's.
I cannot for the life of me though get those Japanese characters to
display in their proper Unicode format. Btw, that glyph is KoNiChiWa
encoded.

Can anyone assist me?

Mat
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Glyph's
      • From: Chris Ridd <email@hidden>
  • Prev by Date: Re: NSTableView table column dragging bug (image)
  • Next by Date: Embedding JPEG compressed images in PDF
  • Previous by thread: Re: Hiding an NSTextField
  • Next by thread: Re: Glyph's
  • Index(es):
    • Date
    • Thread