From: Hidetoshi NAGAI Date: 2003-11-19T18:23:19+09:00 Subject: Re: Encoding in ruby/tk internals Hi, From: Nikolay Ponomarenko Subject: Encoding in ruby/tk internals Date: Wed, 19 Nov 2003 17:39:02 +0900 Message-ID: <807410826.20031119104245@pstu.edu> > In pure Tcl all works normal - > > encoding system "cp1251" > -command [list tblCmd $table(array) %i %C %s] > > %s value is passing to tblCmd in cp1251 > but when i try to do something like that in ruby > > Tk.encoding = 'CP1251' > @entry = TkEntry.new > @entry.configure('validatecommand',[proc {|s| v(s)},'%s']) > > %s is passing to v in utf-8 :( After calling Tk.encoding_system = 'cp1251', do you get the same result? -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)