Skip to content

Commit 863357e

Browse files
committed
String crush issue on MS Excel
String(Korean) crush issue solution on MS Excel. Excel ignored the charset=UTF-8 part, force Excel to take into account the UTF-8. So this last line did the trick Reference: http://stackoverflow.com/questions/155097/microsoft-excel-mangles-diacritics-in-csv-files + bug fixed :)
1 parent 2fe534b commit 863357e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_site/controllers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ function updateWithScrollIfNeeded (query) {
255255
data += "\n";
256256
data += map2csvStr(columns,rows[i],delimiter) ;
257257
}
258-
var plain = 'data:text/csv,\uFEFF;charset=utf8,' + encodeURIComponent(data);
258+
var plain = 'data:text/csv;charset=utf8,\uFEFF' + encodeURIComponent(data);
259259
download(plain, "query_result.csv", "text/plain");
260260
return true;
261261
}

0 commit comments

Comments
 (0)