| Description: |
There is no publicly documented way to provide a header in any other encoding than US ASCII. However the following code seems to work for Latin_1:
set token [mime::initialize -string $emailContent -canonical text/plain -encoding quoted-printable -param {charset iso-8859-1}]
set subject [::mime::word_encode utf-8 quoted-printable [encoding convertto utf-8 "ΓΆΓΆ"]]
# ... ie. subject set to two umlaut-o characters
This uses the undocumented ::mime::word command and setting other parameters accordingly. The desire here would likely be that sensible defaults would be given without the developer having to worry about matters, assuming strings are Tcl utf-8 strings.
|