Skip to content
Browse files

In the respond() method in a function call sendBody() specified encod…

…ing "UTF8", otherwise non-ASCII characters (such as Cyrillic) are not displayed.
  • Loading branch information...
1 parent cca6552 commit ab1a7c422947ee29581e558ab18e36f52e4fca54 Dmitry Rojkov committed with Simon Willison Jan 23, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 djangode.js
View
2 djangode.js
@@ -55,7 +55,7 @@ function respond(res, body, content_type, status) {
res.sendHeader(status || 200, {
'Content-Type': content_type + '; charset=utf-8'
});
- res.sendBody(body);
+ res.sendBody(body, 'utf8');
res.finish();
}
exports.respond = respond;

0 comments on commit ab1a7c4

Please sign in to comment.
Something went wrong with that request. Please try again.