From 36022a0f56a2177747b162423f87c92d7e3d7026 Mon Sep 17 00:00:00 2001 From: James Yang <26634873@qq.com> Date: Tue, 13 Jun 2017 10:26:29 +0800 Subject: [PATCH] fix hyperlink text encoding see issue https://github.com/SheetJS/js-xlsx/issues/684 --- bits/67_wsxml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bits/67_wsxml.js b/bits/67_wsxml.js index 31f3ccc..1fbfbf3 100644 --- a/bits/67_wsxml.js +++ b/bits/67_wsxml.js @@ -108,7 +108,7 @@ function write_ws_xml_protection(sp)/*:string*/ { function parse_ws_xml_hlinks(s, data/*:Array*/, 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) {