Perl Programming Help:
sprintf and UTF8 string
Sep 25, 2009, 11:09 AM
I want to print out a field from an xml file which is UTF8 encoded.
My problem is: this print out is part of a "table". So I want the coloumn will be in the same position. I choosed sprintf.
I was surprised when I show the output! The next coloumn after the mentioned string-coloumn is "moving"! It means: it doesn't start on the same position depends on the amount of UTF8 characters in it.
What is the solution for this problem?
Ps.: I've got many problems with UTF8 and xml parsers. Just the XML::Twig gives back the correct UTF8 string (with a 'keep_encoding' option)