leixiangwu / csv-parser-cplusplus

Automatically exported from code.google.com/p/csv-parser-cplusplus
GNU General Public License v3.0
0 stars 0 forks source link

wrong parsing values with enclosure characters #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. uae csv with enclsure characters
12313,234234
,sdfsdfsdfвафы

,,,,,,,,,,,,,,,,,,,111

a7777

,bbbbb999

,,"тест test,123",ggg,"""1,2"""

2. try to read cell c34 ("тест test,123")
3. look at the string from vector

What is the expected output? What do you see instead?

characters after coma is lost

What version of the product are you using? On what operating system?

i used version 1.0.0 under windows

Please provide any additional information below.

Original issue reported on code.google.com by sss123n...@gmail.com on 6 Oct 2010 at 10:41

GoogleCodeExporter commented 8 years ago
P.S. i used following parser initialisation:

csv_parser parser;
parser.init(tmp_path);
parser.set_enclosed_char('"', ENCLOSURE_OPTIONAL);

Original comment by sss123n...@gmail.com on 6 Oct 2010 at 10:42

GoogleCodeExporter commented 8 years ago
P.P.S i used cvs exported data from google docs spreadsheets:
https://spreadsheets.google.com/ccc?key=0AtgVCK0QlklHdGdHNHp3aG1ranEtMVE2dDYxTzN
nYXc&hl=en&authkey=CLTf5oQO

Original comment by sss123n...@gmail.com on 6 Oct 2010 at 10:51