Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^8: Parsing a .xlsx file with chinese characters

by Sithiris (Novice)
on Oct 06, 2011 at 20:04 UTC ( #930052=note: print w/ replies, xml ) Need Help??


in reply to Re^7: Parsing a .xlsx file with chinese characters
in thread Parsing a .xlsx file with chinese characters

Well I solved my problem using

pack "U0C*", unpack "C*", ($cell->{val});

I'm not entirely sure what that does, but I'm guessing it unpacks the characters into its octets and then repackages it up as a Unicode character... Anyway whatever it does it worked so now all the characters are displayed correctly.

Thank you for your help :)


Comment on Re^8: Parsing a .xlsx file with chinese characters
Download Code
Re^9: Parsing a .xlsx file with chinese characters
by anneli (Pilgrim) on Oct 06, 2011 at 22:11 UTC

    How curious! I'm glad you got it working. :)

      Me too. Saved me a few hours, I'm sure.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930052]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2014-09-24 03:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (244 votes), past polls