-
Notifications
You must be signed in to change notification settings - Fork 76
Escape char is not being escaped during serialization #98
Comments
Have you configured |
My quote char is During serialization a string like
will get serialized to
as opposed to what I expect, which is:
During deserialization, the quote character is interpreted as literal which destroys the csv row. |
Ok. Serialization part sounds like a bug. Is this with version 2.6.3? |
Yes. Version 2.6.3. Can you reproduce it?
|
I haven't had time yet, will try to reproduce now. |
Yes, I can reproduce this. And looks like the underlying reason is that encoder does not actually consider escape character at all -- only decoder (parser) has special handling. So that's the first thing to fix. Another related question is whether quote character should be escaped with escape character, or with the doubling mechanism. But first things first, ensure that escape character itself is escaped by doubling it. |
Hello everyone,
I use \ as an escape char and some of my string values have \ at the end. During serialization \ is not being escaped and transformed to \ as it is expected by me.
The result is that the quotation mark at the end of the serialized csv column is now being treated as a literal character and not as my quote char during deserialization.
Thanks.
The text was updated successfully, but these errors were encountered: