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

Re^3: Perl DBI can't display Chinese text?

by mje (Deacon)
on Oct 16, 2013 at 08:17 UTC ( #1058407=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Perl DBI can't display Chinese text?
in thread Perl DBI can't display Chinese text?

You shouldn't have to do that call to encode with DBD::ODBC. Your trace shows the column was retrieved as SQL_WCHARs and DBD::ODBC should have encoded the data correctly for you (believe me, I maintain DBD::ODBC). What versions of DBI and DBD::ODBC are you using?

Could you provide a small simple example which creates a table like yours, inserts the chinese data and reads it back and I will take a look at it.


Comment on Re^3: Perl DBI can't display Chinese text?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (13)
As of 2014-09-18 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (116 votes), past polls