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
Minimal Example of what's not working (using version 1.1.1). I write on a StringWriter, but the result is the same if I write on a file.
Since I use the very same format for writing and reading, there should not be problems in reading what I just wrote.
import com.github.tototoshi.csv._
import java.io.StringWriter
val wrong_text = "hello\\Tototoshi"
implicit val format = new TSVFormat {}
val w = new StringWriter
val csvwriter = CSVWriter.open(w)(format)
val parser = new CSVParser(format)
csvwriter.writeRow(List(wrong_text))
val line = w.toString
parser.parseLine(line)
The text was updated successfully, but these errors were encountered:
Is this project alive?
I've hit the same issue: when encoding then the escape character itself is not getting escaped UNLESS it is the same character as quoteChar.
But when decoding it is always expected to be encoded.
Looks like a bug indeed, @tototoshi what you think?
Minimal Example of what's not working (using version 1.1.1). I write on a
StringWriter
, but the result is the same if I write on a file.Since I use the very same
format
for writing and reading, there should not be problems in reading what I just wrote.The text was updated successfully, but these errors were encountered: