New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
encoding/csv: can not Analysis word[space],word #9440
Comments
Could you please provide a minimal runnable program example to |
package main import ( func main() { =================abc.csv================== |
That is not a minimal example. NewReader isn't even defined, and you don't use the csv package at all. Maybe you meant this: http://play.golang.org/p/Ez7uyrmoj2 Which yields:
Whereas if you trim the whitespace around the comma, it says:
|
sorry, I put the code modify good, you look at. |
I believe this is working as intended. If a field is quoted it must be quoted in its entirety. Putting spaces around the comma puts spaces into the field, and it means the quote no longer appears at the end, so the field is not quoted. See RFC 4180, bottom of page 2, for a grammar. It makes this very precise. |
like this "RSCP[-75dbm,-70dbm)" ,"RSCP[-80dbm,-75dbm)"
There is a space in a comma before.
like this will be ok
file:encoding/csv/reader.go
line:289
r1, err = r.readRune()
//+++
for err==nil && unicode.IsSpace(r1) {
r1, err = r.readRune()
}
//===
if err != nil || r1 == r.Comma {
break Quoted
}
The text was updated successfully, but these errors were encountered: