Wojciech Kocjan <[EMAIL PROTECTED]> writes:
> <+
> # reading 'test.txt' from a file (converted to Utf-8)
> set f [open test.txt r]
> set fc [string toupper [read $f]]
> close $f
> puts "$fc<BR>\n"
> hputs "$fc<BR>\n"
>
> # contents of 'test.txt' - set manually
> set fc [string toupper "±æê³ñ󶼿"]
> puts "$fc<BR>\n"
> hputs "$fc<BR>\n"
> hputs "<BR>\nencoding=[encoding system]\n"
> +>
> test.txt contains some smallcase polish fonts...
Could you tell me how to get things set up in order to test this for
myself?
Or better yet, write a test case for dtcl.test and the test.ttml file.
> It seems to me that read->puts converts strings to Utf, then
> uppercases them and converts back to iso8859-2. When I do set->hputs
> however, they remain in iso8859-2 form, not Utf-8. So these two
> combinations work with eachother, but when reading polish strings
> from a file some chars they get messed up.
So the problem is read + hputs, because it converts it to UTF, but not
back to iso8859-2?
> I realize it's a sad thing, but I suppose some (most/every?)
> functions should be rewritten using
> UtfToExternal/ExternalToUtf... Anybody has another idea?
Will investigate further...
--
David N. Welton
Personal: http://www.efn.org/~davidw/
Free Software: http://people.debian.org/~davidw/
Apache Tcl: http://tcl.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]