Extended ASCII

Aug 27, 2010 at 1:34pm

Extended ASCII

Is there a way to print in a UI object, with jtextlayout_set, the extended ascii characters (characters from 128 to 255)?
I’ve tried to pass unsigned chars > 128, but I couldn’t manage to make it work (it always prints the relative mod 128 character…)

Thanks!
Daniele

#52010
Aug 27, 2010 at 7:25pm

Extended characters in Max API functions should be in UTF-8 format, which uses multiple bytes for extended characters:

http://en.wikipedia.org/wiki/UTF-8

If you already have characters in one of the various 8-bit extensions to ASCII such as MacRoman, MS-ANSI, or Latin-1 (ISO-8859-1). You can convert them to UTF-8 with the charset_convert function:

http://cycling74.com/sdk/MaxSDK-5.1.1/html/group__unicode.html

Note that none of these 8 bit extensions to ASCII are actually ASCII, which is a 7-bit standard.

#186729

You must be logged in to reply to this topic.