Skip to content
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

解析CSV文件输出字符串带引号问题 #1

Open
lizhenningi opened this issue Jun 17, 2020 · 4 comments
Open

解析CSV文件输出字符串带引号问题 #1

lizhenningi opened this issue Jun 17, 2020 · 4 comments

Comments

@lizhenningi
Copy link

您好!
我在使用这个csv解析器时,发现解析CSV文件之后输出的字符串带有引号,我现在需要的是“不管CSV文件中字符串带不带引号,解析CSV文件后输出的字符串不要带引号”

@xianjimli
Copy link
Member

好的,谢谢。改了,你更新试试。

@lizhenningi
Copy link
Author

您好!
我更新了代码,去掉引号的修改生效了,之后我使用test_data.csv(此文件在test_data.zip压缩包中)文件做了实验,发现还有些问题。
比如说:如果一对双引号之间有换行符,应该认为此换行符是双引号中字符串的一部分,而不应该认为此换行符是csv文件中一行数据的结束标志。
具体可以参照RFC4180。
test_data.zip

@xianjimli
Copy link
Member

有实际需求吗?没有实际我就懒得去搞了。

@lizhenningi
Copy link
Author

目前没有实际需求,谢谢您

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants