Displaying different languages in an NSTableView
Displaying different languages in an NSTableView
- Subject: Displaying different languages in an NSTableView
- From: Michael James <email@hidden>
- Date: Sun, 13 Oct 2002 02:43:21 -0400
I'm having problems trying to display characters in multiple languages
in different cells of an NSTableView. For example, there might be a
row with English in one column and Japanese in another on the same row.
Basically what my problem boils down to is determining at runtime
which type of encoding to use. I'm getting ID3 tag information from
MP3 files and some of the tags may be in another language.
I've tried reading the ID3 tags into NSStrings using the
NSUTF8StringEncoding, NSNonLossyASCIIStringEncoding, and
NSUnicodeStringEncoding string encodings. My strings either turn out
empty, without non-English characters, or certain rows of the table are
in Chinese characters while others are in plain English.
So my question is is there a way to determine if the string you're
about to read is encoded using Unicode, ASCII, or something else? I'm
sure there has to be a way, because you can enter non-English
characters for ID3 tag values in iTunes and it displays everything just
fine. I realize that iTunes is a Carbon app (at least some major parts
have probably been written in Carbon), and that's fine. I'll use
Carbon if I must, but if there's anyway to do this please let me know.
Thanks.
- Michael James
email@hidden
_______________________________________________
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.