Unicode Support
This package contains the following conversion functions:
1. utf8_to_Unicode: UTF-8 (a String) --> Unicode (a List of integers)
2. encode: Unicode --> String (in a user-chosen encoding, including utf-8, cp852, cp1250 etc.); non-representable characters are replaced with "?"
3. getCP: retrieves the console codepage. On Windows, this does "chcp /c"; on other platforms, it returns 'id', which is a non-existent encoding, so all special characters are shown as "?".
The encodings are compiled into the library, and are generated from the encoding files (*.enc) that come with ActiveTCL (see LICENSE.txt for licensing details). Note that not all encodings are supported, just the simple ones.
Examples:
{System.showInfo {Unicode.encode cp1250 {Unicode.utf8_to_Unicode "Hello world"}}