Converting Script Manager Encodings to CFString

Converting Script Manager Encodings to CFString

Post by lally_spam » Sun, 18 Jan 2004 08:57:32


I've got a string in a 'vers' resource that I'd like to convert to a
CFString. The problem is that
the string's encoded in one of many possible encodings, depending on a
value like verUS or
verLithuania, and I need to tell CFString something like
kCFStringEncodingMacKorean.

I don't know the names of the native languages of all the countries
listed in these encoding constants, so I can't fill in a table like
{kCFStringEncodingMacKorean, verKorea}. Is there
somewhere I can get a good translation table, or a function that'll do
it for me? Or does
anyone have a better idea?

Thanks in advance!
 
 
 

Converting Script Manager Encodings to CFString

Post by Benjamin R » Mon, 19 Jan 2004 03:02:30

Hi Lally,


XXXX@XXXXX.COM (Lally Singh) writes:

The supported (and some unsupported) regions and script encodings are
listed in <Script.h>.


The TEC API UpgradeScriptInfoToTextEncoding() followed by
RevertTextEncodingToScriptInfo() should do it, see the TEC docs.


benny

 
 
 

Converting Script Manager Encodings to CFString

Post by lally_spam » Tue, 20 Jan 2004 14:35:06


You, sir, are a lifesaver. Thank you!