I'm not completely familiar with how express handles encoding, but when you
send over your content make sure you do a toString('utf-8') on it and on
your response object headers specify the uft-8 encoding as well.
Something similar to:
var headers = {
"Content-Type": "text/html; charset=utf-8"
}
res.setEncoding('utf-8');
res.write(myContent.toString('utf-8');
res.end();
If UTF-8 doesn't work switch back to ASCII standard (change utf-8 to ascii)
and try again. Also make sure that you have all of the updates put on your
XP box. I know there have been several language updates for it that may be
affecting your results with Russian. If you can get your server up and
running again I'll be happy to run my XP64 US-EN install against it to see
if it has any problems.
- Jeremy
2012/6/26 Ilya Rusanen <[email protected]>
>
>> Do you mean I should specify encoding in the page html-code <meta
>> http-equiv='Content-Type' content='Type=text/html; charset=utf-8'>
>> or somewhere on the backend? I should mention, most of site content is in
>> russian (UTF-8 is prefered), however credentials (login, pass, email) may
>> be only latin.
>>
>>
>>
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en