Browse Source

Also accept 'utf-8' to specify utf8 encodings.

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
2b994d9e37
  1. 2
      src/node.cc

2
src/node.cc

@ -39,6 +39,8 @@ enum encoding ParseEncoding(Handle<Value> encoding_v, enum encoding _default) {
if (strcasecmp(*encoding, "utf8") == 0) {
return UTF8;
} else if (strcasecmp(*encoding, "utf-8") == 0) {
return UTF8;
} else if (strcasecmp(*encoding, "ascii") == 0) {
return ASCII;
} else if (strcasecmp(*encoding, "binary") == 0) {

Loading…
Cancel
Save