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

What web server are you using? Is it configured to deliver UTF-8? Try adding the line

<meta charset="UTF-8" />

to the <head> block of the generated html. Also, it should be Content-Type: text/html; charset=UTF-8 (UTF-8 uppercase).

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

Replies are listed 'Best First'.
Re^2: same utf8 string is different in console and in browser (Sybase)
by alexander_lunev (Pilgrim) on Aug 19, 2017 at 18:36 UTC

    Server is nginx + fastcgi, it is configured for utf-8, browser sees page as UTF-8. And actually all other scripts works fine with utf-8, problem is only with strings that come from Sybase. Solution is here 1197669.