On May 23, 2008, at 18:23, Greg Eck wrote:
Hi Jeff,

I have used the technique that Gisle mentioned in using "use utf8". This shows that constants can be used in the listbox fine. That makes sense and works fine.

Added a loop to bring in some data from a piped file. The print statements (with both constants and read-in values) display nicely as expected. Constants will display fine both in a print statement as well as in the Tkx listbox. But when I assign a value read in from stdin to the listbox, I get garbage again.

If it's UTF-8 you get on stdin you can either place binmode(STDIN, ":encoding(utf8)") early in your script, or run perl with the -CS option.

--Gisle

Reply via email to