You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But, the second value was supposed to be 퀙䘘縤ઞ◒䘬掤⢶坪⁓匕ମҀꑤꇮ腋觯栚ℑ钺剸蕁耥믠鐛挀쐜麂슊䧩奌쒒�䃡썙츚祉≔轾╠扒㱉鞎뽖븢暩䜄蚂窏㋡秊ӥ붝ヴ恢둊쫎! instead, it was truncated to 퀙䘘縤ઞ◒䘬掤⢶坪⁓匕ମҀꑤꇮ腋觯栚ℑ钺剸蕁耥믠鐛挀쐜麂슊䧩奌쒒
The text was updated successfully, but these errors were encountered:
The problem is caused by this and other lines in the parser treating unicode line endings, such as the character '\u0085' above, specially - the same line endings are NOT being escaped in the Writer resulting in asymmetric reading/writing as scala-csv will not read back the CSV it wrote when Quoting != QUOTE_ALL and the input contains unicode line endings
I'm also affected by this bug.
It was introduced in #25 to fix #22 and then it was kept with following refactorings.
It doesn't seem the right fix though: RFC-4180 and the W3C recommendation only specify CRLF as line terminators for CSV files.
I noticed you can pass an implicit CSVFormat to the CSVReader open methods. The CSVFormat includes a customizable line terminator, but AFAICS, it is only used in the CSVWriter. Perhaps the CSVReader could be made to respect the line terminator in the CSVFormat?
Example:
The output is:
But, the second value was supposed to be
퀙䘘縤ઞ◒䘬掤⢶坪⁓匕ମҀꑤꇮ腋觯栚ℑ钺剸蕁耥믠鐛挀쐜麂슊䧩奌쒒�䃡썙츚祉≔轾╠扒㱉鞎뽖븢暩䜄蚂窏㋡秊ӥ붝ヴ恢둊쫎
! instead, it was truncated to퀙䘘縤ઞ◒䘬掤⢶坪⁓匕ମҀꑤꇮ腋觯栚ℑ钺剸蕁耥믠鐛挀쐜麂슊䧩奌쒒
The text was updated successfully, but these errors were encountered: