Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: same utf8 string is different in console and in browser (Sybase)

by alexander_lunev (Pilgrim)
on Aug 19, 2017 at 18:22 UTC ( [id://1197669]=note: print w/replies, xml ) Need Help??


in reply to Re: same utf8 string is different in console and in browser (Sybase)
in thread [SOLVED] same utf8 string is different in console and in browser (Sybase)

But you were right! I've changed way to connect to MSSQL, and when i connect through freetds.conf with DBI:Sybase:server=server_name;database=database_name", strings output to browser as they should! I have tried with syb_enable_utf8 => 1, tried to put charset=utf8 in DSN, with no changes. Now i add server to freetds.conf and add client charset = UTF-8 and it works.

Though i still don't get it, why the very bytes of $str turns different only because of script called by CGI...

Replies are listed 'Best First'.
Re^3: same utf8 string is different in console and in browser (Sybase)
by shmem (Chancellor) on Aug 19, 2017 at 21:21 UTC

    So, some hidden thing there. Different environment settings for command line and web server?

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 20:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found