Rails为何无法从记录中移除换行符rn?
- 内容介绍
- 文章标签
- 相关推荐
本文共计1193个文字,预计阅读时间需要5分钟。
我已经导入了CSV文件,但发现一些记录中的字符串\n在列中。再次导出为CSV时,这些行出现乱码。
IveimportedsomedatacomCSVfilesandendedupwithafewrecordscontainingthestring\r\niI've imported some data com CSV files and ended up with a few records containing the string "\r\n" in a column. When exporting to a CSV again, these lines screw up the lines as they insert a new line where it should not...
我导入了一些data com CSV文件,最后得到了一些记录,其中包含列中的字符串“\r\n”。
本文共计1193个文字,预计阅读时间需要5分钟。
我已经导入了CSV文件,但发现一些记录中的字符串\n在列中。再次导出为CSV时,这些行出现乱码。
IveimportedsomedatacomCSVfilesandendedupwithafewrecordscontainingthestring\r\niI've imported some data com CSV files and ended up with a few records containing the string "\r\n" in a column. When exporting to a CSV again, these lines screw up the lines as they insert a new line where it should not...
我导入了一些data com CSV文件,最后得到了一些记录,其中包含列中的字符串“\r\n”。

