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?? |
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...
In Section
Seekers of Perl Wisdom
|
|