最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Not able to separate csv data using delimiter-"," appropriately - Stack Overflow

programmeradmin0浏览0评论

I'm trying to separate csv data using the delimiter ","(comma). My data has various fields(Name,Age,Address,Amount). Some of the fields are inside double quotes("field value") like Address. When I give the delimiter as transformer.csv2xml.delimiter="," my application looks for double quotes on every field, hence unable to pull the data effectively. Whereas if I give the delimiter transformer.csv2xml.delimiter=, the application splits incorrectly the rows that have comma inside the data. Does anyone have any idea as to why it might be happening. One example I can give of this is below:

Payment, PaymentType, Amount, Name, Address
ABC, Wire, "$226,206.35 ", John Doe, "123 RIVERRSIDE AVE BLDG 99, 1ST FLO JACKSONVILLE FL 12345"
发布评论

评论列表(0)

  1. 暂无评论