Menu

#24 SQL import fails on UTF-8 data

v1.0_(example)
wont-fix
nobody
5
2018-08-30
2018-02-26
Anonymous
No

Hi there,

I think there is a bug when executing a SQL insert script via Tools -> Import SQL data. There is no option for checking UTF-8 and the imported UTF-8 data gets corrupted in the database.

Kind regards
Frank Opitz

Discussion

  • Ralf Wisser

    Ralf Wisser - 2018-02-27

    Hi,

    if you export data with "UTF-8 encoding" checked in "Data Export" dialog (or by using the "-UTF8" cli option), the "Import SQL data" tool will import the file as UTF-8 data.
    If it's not checked, the import tool assumes the file to be encoded with the system encoding. You may however change the system encoding by using the java option "-Dfile.encoding=utf-8", see
    https://sourceforge.net/p/jailer/discussion/700499/thread/b48d2c30/?limit=25#8297

    HTH,
    Ralf

     
  • Anonymous

    Anonymous - 2018-02-27

    Hi,

    thanks for your feedback. The SQL export was not created with Jailer. So I will give the java option a try. Thanks for the hint.

    Kind regards
    Frank Opitz

     

    Last edit: Anonymous 2018-02-27
  • Ralf Wisser

    Ralf Wisser - 2018-08-30
    • status: open --> wont-fix
     

Anonymous
Anonymous

Add attachments
Cancel