https://bugs.freedesktop.org/show_bug.cgi?id=36313

--- Comment #19 from Owen Genat <[email protected]> ---
Tested under GNU/Linux using 4.4.0.0.alpha0+
Build ID: 037d03b9facb414ba6be01fa6ee92fc7ca89f70c
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time:
2014-09-11_00:32:52

$ cat test.csv 
2014-09-13;123;"abc"
$ /opt/libreofficedev4.4/program/soffice --headless --convert-to ods
--infilter=CSV:59,34,UTF8 a.csv 
convert /data/temp/LO_test/a.csv -> /data/temp/LO_test/a.ods using calc8
Overwriting: /data/temp/LO_test/a.ods
$ unzip -p a.ods content.xml | xmllint --format - | grep "<text:p>[^<]*"
            <text:p>2014-09-13</text:p>
            <text:p>123</text:p>
            <text:p>abc</text:p>
$ /opt/libreofficedev4.4/program/soffice --headless --convert-to ods
--infilter=CSV:59,,UTF8 a.csv 
convert /data/temp/LO_test/a.csv -> /data/temp/LO_test/a.ods using calc8
Overwriting: /data/temp/LO_test/a.ods
$ unzip -p a.ods content.xml | xmllint --format - | grep "<text:p>[^<]*"
            <text:p>2014-09-13</text:p>
            <text:p>123</text:p>
            <text:p>"abc"</text:p>
$ /opt/libreofficedev4.4/program/soffice --headless --convert-to ods
--infilter=CSV:,,UTF8 a.csv 
convert /data/temp/LO_test/a.csv -> /data/temp/LO_test/a.ods using calc8
Overwriting: /data/temp/LO_test/a.ods
$ unzip -p a.ods content.xml | xmllint --format - | grep "<text:p>[^<]*"
            <text:p>2014-09-13;123;"abc"</text:p>

$ cat b.csv 
"First","Second"
"áéŕó","ṫřåiṅ"
$ /opt/libreofficedev4.4/program/soffice --headless --convert-to ods
--infilter=CSV:44,34,UTF8 b.csv 
convert /data/temp/LO_test/b.csv -> /data/temp/LO_test/b.ods using calc8
Overwriting: /data/temp/LO_test/b.ods
$ unzip -p b.ods content.xml | xmllint --format - | grep "<text:p>[^<]*"
            <text:p>First</text:p>
            <text:p>Second</text:p>
            <text:p>áéŕó</text:p>
            <text:p>ṫřåiṅ</text:p>
$ /opt/libreofficedev4.4/program/soffice --headless --convert-to ods
--infilter=CSV:44,,UTF8 b.csv 
convert /data/temp/LO_test/b.csv -> /data/temp/LO_test/b.ods using calc8
Overwriting: /data/temp/LO_test/b.ods
$ unzip -p b.ods content.xml | xmllint --format - | grep "<text:p>[^<]*"
            <text:p>"First"</text:p>
            <text:p>"Second"</text:p>
            <text:p>"áéŕó"</text:p>
            <text:p>"ṫřåiṅ"</text:p>
$ /opt/libreofficedev4.4/program/soffice --headless --convert-to ods
--infilter=CSV:,,UTF8 b.csv 
convert /data/temp/LO_test/b.csv -> /data/temp/LO_test/b.ods using calc8
Overwriting: /data/temp/LO_test/b.ods
$ unzip -p b.ods content.xml | xmllint --format - | grep "<text:p>[^<]*"
            <text:p>"First","Second"</text:p>
            <text:p>"áéŕó","ṫřåiṅ"</text:p>

Are only decimal values available for character specification or can hex values
be used also? I could not find a hex notation that worked. In any case, well
done Tomas and thank you.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to