google-code-export / sqlite-manager

Automatically exported from code.google.com/p/sqlite-manager
1 stars 0 forks source link

utf-16 file import does not work #251

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a excel doc with chinese, pinyin, etc characters
2. save as unicode utf-16 text file (the file is tab separated and uses
double quotes as times, may need some massaging) 
3. try to import file into sqlite 
4. Stops working, i used textwranger to convert it to utf-8 it works fine. 

What is the expected output? 

Does not import utf-16, only utf-8 please implement this import function as
most of us work with excel. Thanks. 

What do you see instead?

data would not import 

Extension Version = Sqlite manager 0.4.5
Application = Firefox 3.07
OS = Mac OS X 10.5.6

Original issue reported on code.google.com by lec...@gmail.com on 17 Mar 2009 at 4:57

GoogleCodeExporter commented 9 years ago
Could u pls attach a sample utf-16 file here?

Original comment by mrinal.k...@gmail.com on 17 Mar 2009 at 6:38

GoogleCodeExporter commented 9 years ago
I tried it even with numbers it is a problem. Not just text, here are 2 samples.
Short, I did not want to give away my data, but you can dup them. 

Original comment by lec...@gmail.com on 17 Mar 2009 at 1:33

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the files. I think this issue has been fixed. But it would be nice 
to have
it confirmed. Version 0.4.7 fixes it. Can u pls confrm the same using the latest
version available on downloads page.

Fix: When importing, user can specify that the file to import is UTF-16 instead 
of
the default UTF-8.

Original comment by mrinal.k...@gmail.com on 18 Mar 2009 at 11:06

GoogleCodeExporter commented 9 years ago
Thanks for the fix, that was very quick and very cool, my dev team will be very
happy. Very much appreciate it! 

I tested it with my  more comprehensive data set 500 records consisting of 3
different scripts (text and numbers). I saved my excel table doc as Unicode 
UTF-16
txt file and wonderful we are in business. If anyone else is doing this, use tab
separated when importing. 

Original comment by lec...@gmail.com on 18 Mar 2009 at 11:37