Skip to content

Commit

Permalink
Trying forced UTF8 in toString
Browse files Browse the repository at this point in the history
* Since it appears that `Chunks` is an array of `Buffers` still have to cycle through.
* This may not cover the junk Unicode... but trying

Applies to OpenUserJS#678
  • Loading branch information
Martii committed Oct 6, 2015
1 parent 51fdd0a commit eabed04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/scriptStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ exports.getMeta = function (aChunks, aCallback) {
var blocks = {};

for (; i < aChunks.length; ++i) {
str += aChunks[i];
str += aChunks[i].toString('utf8');

for (parser in parsers) {
rHeaderContent = new RegExp(
Expand Down

0 comments on commit eabed04

Please sign in to comment.