Copy and export failed with special charsets (with example) ("Uncaught SyntaxError: Unexpected")

Copy and export failed with special charsets (with example) ("Uncaught SyntaxError: Unexpected")

qinbxqinbx Posts: 9Questions: 0Answers: 0
edited October 2012 in DataTables 1.9
Hi, we met an problem as titled.
------------------------------------
= Live example url =
http://jsfiddle.net/a57zn/3/
= Test browser =
Chrome
= Description =
The page 2, have special charsets.
When click the copy button, the browser console the info "Uncaught SyntaxError: Unexpected token ILLEGAL".
the export pdf contains part of the special charsets, some time export failed.
------------------------------------
I set the page and all tag as charset="utf-8", the error still occurs.

It's much the same with http://www.datatables.net/forums/discussion/6932/tabletool-bug-with-exporting-non-english-characters/p1

We tried to find the reason, but failed. Would you have time to help us find the reason?

Replies

  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin
    As noted in a number of other threads (

    http://datatables.net/forums/discussion/6680/tabletools-utf-8-in-pdf-format/p1
    http://www.datatables.net/forums/discussion/6932/tabletool-bug-with-exporting-non-english-characters/p1

    ) unfortunately we've not yet found a way to get UTF-8 support on the PDFs output by AlivePDF.

    The only workaround at the moment is to have the server generate PDFs. Any patches to add support for UTF-8 on PDF output are very welcome!

    Allan
  • qinbxqinbx Posts: 9Questions: 0Answers: 0
    Thanks Allan.
    In above url http://jsfiddle.net/a57zn/3/ , because of special charasets, the copy function can't work, is this also related with AlivePDF?
  • qinbxqinbx Posts: 9Questions: 0Answers: 0
    edited October 2012
    The copy function can work well with special charasets in static table.
    http://jsfiddle.net/a57zn/1/
This discussion has been closed.