Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Character set in Carbon



I there a way to ask a Carbon application what character set is currently
using? (Something like "GetCurrentlyUsedCharacterSet" returning UTF8,
MacRoman8 or WE8ISO8859,...)

There is no way to answer this question. An application (Carbon or otherwise) does not have to be using any one specific character set at any given time. The same application could read data out of a unicode file, a Mac Roman encoded text file, and a ISO 8859-1 file all at the same time. Depending on what kind of text entry fields you might be using, and which keyboard the user has selected, the code might be receiving input in any of a number of character sets.


Your question has no answer because it is based on the false premise that an application can only use one character set at a time.

Scott

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >RE: Character set in Carbon (From: "Dieter Oberkofler" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.