fix hyperlink text encoding

see issue https://github.com/SheetJS/js-xlsx/issues/684
This commit is contained in:
James Yang 2017-06-13 10:26:29 +08:00 committed by GitHub
parent 5d997df419
commit 36022a0f56

@ -108,7 +108,7 @@ function write_ws_xml_protection(sp)/*:string*/ {
function parse_ws_xml_hlinks(s, data/*:Array<string>*/, rels) {
var dense = Array.isArray(s);
for(var i = 0; i != data.length; ++i) {
var val = parsexmltag(data[i], true);
var val = parsexmltag(utf8read(data[i]), true);
if(!val.ref) return;
var rel = rels ? rels['!id'][val.id] : null;
if(rel) {