Apache OpenOffice (AOO) Bugzilla – Issue 60296
Calc: can't import fixed-width CSV with Thai text
Last modified: 2013-08-07 15:14:17 UTC
I have a fixed width CSV file and I want to import to Calc but I have problem with Fixed width setting. I can't set column to fit because Thai text is wrongly displayed. 1. Go to menu File ->Open. 2. Click "Files of type:" list box and choose "Text CSV(*csv, *.txt)". 3. Open the file from attachment. 4. Click "Character set" list box and choose "Thai(ISO-8859-11/TIS-620)". 5. Click "Fix width" and set column. 6. Set the separator of "column 1" behind the number "1". 7. Try to set the separator of "column 2" before "England", It will be impossible because Thai text display is wrong.(See the screenshot) If I did not set Character set to "Thai(ISO-8859-11/TIS-620), the result is OK. I can set the columns to fit.
Created attachment 33074 [details] Import to calc file
Created attachment 33075 [details] Wrong display screenshot.
confirmed on Windows XP Pro SP2 with OOo 2.0.1. there is too few space before Thai text.
When you're moving the vertical separator-line before the column with Thai text, you'll see another copy of the Thai text sliding, overlapping the existing one. This does not happen if Calc doesn't know it is Thai (e.g. tell Calc that it is ISO-8859-1). So Calc might treat the widths of non-western characters strangely. This doesn't happen in Excel. Excel imports such Thai fixed-width CSV easily.
could not reproduce using internal m154 build (upcoming OOo2.0.2). Therefore closed wfm. Frank
closed wfm
I've tested the first example csv in 2.0.2rc1. Though it's possible to set the separator of the two data columns, it's hard because the display of the second row is still wrong. The same as in the screenshot. If we try to import more complex Thai fixed-with csv, it will be impossible because of this. Actually, I have real-life example that is impossible to set the separators. To illustrate this, I'll attach another simple example. The same as the first but change the 1st row English text to Thai. Just two row of Thai text will make it much harder.
Created attachment 34235 [details] The first csv with 1st row's English word changed to Thai
taking this
set the target
started
fixed in SRC680/calc37 (OOo 2.0.4)
back to QA
verified in internal build cws_calc37
closed because fix available in OOom180