CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
sprintf and UTF8 string


New User

Sep 25, 2009, 11:09 AM

Post #1 of 1 (400 views)
sprintf and UTF8 string Can't Post


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)


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives