a question about utf-16 conversion
John M McIntosh
johnmci at smalltalkconsulting.com
Wed Jun 15 05:42:06 UTC 2005
I've been working on os-x spelling support.
I want to take a string in squeak and convert to utf-16
foo := 'ackbar' convertToWithConverter: (TextConverter
newForEncoding: 'utf-16').
That works ok, I'll assume it is correct?
But on the way back from the plugin I get a ByteArray of
kTextEncodingUnicodeDefault + kTextEncodingDefaultFormat or
kUnicode16BitFormat which is what os-x 10.3 or lower provides.
So how do I convert that back to say a String, or a WideString?
--
========================================================================
===
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
========================================================================
===
More information about the Squeak-dev
mailing list
|