Perl-Sensitive Sunglasses | |
PerlMonks |
[SOLVED] same utf8 string is different in console and in browser (Sybase)by alexander_lunev (Pilgrim) |
on Aug 19, 2017 at 14:45 UTC ( [id://1197659]=perlquestion: print w/replies, xml ) | Need Help?? |
alexander_lunev has asked for the wisdom of the Perl Monks concerning the following question: Hello, monks! I'm seeking for your wisdom! I'm getting strings from various SQL servers via DBI, and those are suppose to be utf8 russian strings. Getting utf8 strings from PgSQL is OK, but with Sybase strings in console looks ok, but when printed to browser via CGI, they're turns into ??????. The core of the program is this:
In console all strings and bytes are the same:
But in browser:
So, it's not just browser glitch with encoding, but the very $str is changed! WHY? UPD: Solution is here 1197669.
Back to
Seekers of Perl Wisdom
|
|