Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by shmem (Chancellor)
on Aug 19, 2017 at 17:56 UTC ( [id://1197666]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-19 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found