Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting gives error if the data has unicode characters || Bootstrap Table export #189

Closed
divyamv opened this issue Oct 28, 2014 · 7 comments

Comments

@divyamv
Copy link

divyamv commented Oct 28, 2014

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

@wenzhixin
Copy link
Owner

Hi @divyamv , I find the same error in this issue: czottmann/jquery-base64#1.
Maybe need to update the base64 plugin.

@wenzhixin
Copy link
Owner

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.

@dzcatic
Copy link

dzcatic commented Dec 4, 2014

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...

@abeto
Copy link

abeto commented Jul 14, 2015

It was working after changing jquery.base64.js from the link https://gist.github.com/wenzhixin/09e218c884f4f380b68a for Amharic(አማርኛ) character

@pdxbug
Copy link

pdxbug commented May 2, 2016

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

@jcomas
Copy link

jcomas commented Mar 15, 2017

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>

@zxkang
Copy link

zxkang commented Oct 19, 2017

@jcomas It's great, powerful plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants