in reply to Tk::Text and odd unicode behavior
$sublable->insert( 'end', $_ ) for @contents ;
works fine for me, too, because - unlike your array interpolation in double quoted strings with default setting of $" - this does not add spaces.$sublable->insert( 'end', join('',@contents) );
As for
behaving strangely: the synopsis for the insert method is$sublable->insert( 'end', @contents );
$text->insert(index, chars, ?tagList, chars, tagList, ...?)
so when you pass a list of arguments, every other of its elements is being interpreted as a "tagList" parameter. I think this explains what you're getting... No encoding mysteries involved.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Tk::Text and odd unicode behavior
by zentara (Cardinal) on Dec 08, 2010 at 19:28 UTC |