GNOME Bugzilla – Bug 316816
Unable to open UTF-16LE encoded file
Last modified: 2005-09-22 02:22:18 UTC
Distribution/Version: XP Home SP2 When I attempt to open a TSV file created with SPB Finance Pocet PC software I get some characters in one field. The file opens fine in Open Office.
We are going to need a sample file in order to get at this. It would be best if you could create a sample file with nothing confidential in it and attach it here. If you only have files with confidential informtion in it, perhaps you could send a copy to mwelinder@gmail.com and/or jody@gnome.org with a note that says to delete the file right after we debug the issue.
Ok, got a file. There are several problems: 1. The file encoding is not guess right. Since the encoding appears to be UTF-16LE, that is highly problematic. 2. Selecting "UTF-16BE" [yes, BE] in the gui for the text importer yields Pango warnings: (gnumeric:23131): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() 3. Selecting "UTF-16LE" decodes the file fine but the line count needs to be redone. (It was done with the guessed encoding.)
Actually, from the command line this loads fine for me. How did you load the file?
Fixed in Gnumeric and Goffice cvs HEAD.
I tried several approaches using the spreadsheet -- simply selecting the file gets a unsupported file format, any other option that I used that didn't get an error message ended with data in one field.
The "unsupported file format" problem is 312347, a rather anoying bug imho.