Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Read/Write Chinese Characters

by nikosv (Chaplain)
on Oct 16, 2012 at 06:00 UTC ( #999229=note: print w/replies, xml ) Need Help??

in reply to Read/Write Chinese Characters

set Win32::OLE in UTF8 mode ?

Win32::OLE->Option(CP => Win32::OLE::CP_UTF8);

Replies are listed 'Best First'.
Re^2: Read/Write Chinese Characters
by remiah (Hermit) on Oct 16, 2012 at 07:52 UTC

    I saw OP's situation now on windows.

    And you are right.

    Without setting code page option, it returns default code page value, in my case CP932, and sometimes it fails in cases like 'ri' + 'space'.

    With setting code page to Win32::OLE::CP_UTF8, as you said, it returns decoded character and works fine.

    thanks and regards.

Re^2: Read/Write Chinese Characters
by lordsll (Novice) on Oct 16, 2012 at 13:44 UTC
    Thank you so much. It works great. I really appreciate everyone's help.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999229]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2018-02-20 20:37 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (274 votes). Check out past polls.