On 18.5.2006, at 17:02, Konovalov, Vadim Vladimirovich (Vadim)** CTR
** wrote:
One (very small) thing remains strange though: Unicode (utf8) does
not work in Labels (incl. LabelFrame), Entry and Text, but
works fine
in Title and Button. See attached screenshot.
I suspect this is encoding. What encoding is your script in? May be
all you need is to "use utf8;"?
Both script and the file read into Text widget are in UTF-8.
It is some local problem, maybe specific to mac installation of Tcl.
On my Windows (ActiveState Perl + ActiveTcl) everything is perfect.
On my Fedora machine too (I have installed ActiveTcl locally (I am
not an admin) and set TCLLIBPATH to get some missing widgets).
Can you send simple example to check?
Mine unicodish programs run just fine, but with following line at
the top:
use encoding "cp1251", filter=>1;
My file begins like this (I know the switches are redundant, but it
should not hurt):
#!/usr/bin/perl -CIOEioA
use warnings;
use strict;
use open ':utf8';
use utf8;
use Tcl::Tk qw(:perlTk);