Skip to content

Commit

Permalink
Merge pull request #169 from ilan-gold/ilan-gold/string_fix
Browse files Browse the repository at this point in the history
Fix string data array conversion issue.
  • Loading branch information
constantinius authored Aug 6, 2020
2 parents 19a2105 + dd1f2cf commit 7d4a7ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geotiff.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function getValues(dataSlice, fieldType, count, offset) {
}

if (fieldType === fieldTypes.ASCII) {
return String.fromCharCode.apply(null, values);
return new TextDecoder('utf-8').decode(values);
}
return values;
}
Expand Down

0 comments on commit 7d4a7ab

Please sign in to comment.