Not able to export if the data has unicode characters.getting the below error
Uncaught INVALID_CHARACTER_ERR: DOM Exception 5 VM2832 jquery.base64.js:136_getbyte VM2832 jquery.base64.js:136_encode VM2832 jquery.base64.js:160$.fn.extend.tableExport tableExport.js:121(anonymous function) bootstrap-table-export.js:73jQuery.event.dispatch jquery.js:4641jQuery.event.add.elemData.handle
Hi @divyamv , I find the same error in this issue: https://github.com/carlo/jquery-base64/issues/1.
Maybe need to update the base64 plugin.
You can try this: https://gist.github.com/wenzhixin/09e218c884f4f380b68a, this issue doesn't belong to the category of the bootstrap-table, so close it.
I have tried what wenzihixin suggested " https://gist.github.com/wenzhixin/09e218c884f4f380b68a", now it prints even if I have non English letters. But it messed up in printing in all format except for xml. I get letters such as 脜戮 what is not good...
It was working after changing jquery.base64.js from the link https://gist.github.com/wenzhixin/09e218c884f4f380b68a for Amharic(釆犪垱釄姏) character
Error received DOM Exception 5 INVALID CHARACTER error on valid base64
Abeto's base64 fixed my issues trying to download to excel using
Karthikeyan K's
Export HTML table to Excel / CSV / PDF / JSON / PNG using jQuery
http://demos.w3lessons.info/jquery-table-export
Better use this fork: https://github.com/hhurz/tableExport.jquery.plugin
And you have to include the modules, for example:
<script src="/modules/tableExport.jquery.plugin/libs/js-xlsx/xlsx.core.min.js"></script>
<script src="/modules/tableExport.jquery.plugin/tableExport.min.js"></script>
<script src="/modules/bootstrap-table/extensions/export/bootstrap-table-export.min.js"></script>
@jcomas It's great, powerful plugin.
Most helpful comment
It was working after changing jquery.base64.js from the link https://gist.github.com/wenzhixin/09e218c884f4f380b68a for Amharic(釆犪垱釄姏) character