- Jay Pillai
- PowerBuilder
- Friday, 26 March 2021 08:36 AM UTC
Hi All
I am reading a CSV file on the local machine and PUTting it to the server using REST service.
An example of my csvfile:
Year,Make,Model
1997,Ford,E350
2000,Mercury,Cougar
1996,Jeep,Grand Cherokee
On the server it looks like this with spaces in between records. Could not figure out why this happens.
Year,Make,Model
1997,Ford,E350
2000,Mercury,Cougar
1996,Jeep,Grand Cherokee
The encoding accepted by the server is EncodingANSI!. I also tested with some special characters like:
öäü\/$£]}?'@#§!_: and noticed that ] replaced with " and ! replace with ] on the server.
Not sure if all this has something to do with server side encoding.
I am sending the ls_pcfile_data to the server after FileReadEx.
li_fnum = FileOpen(ls_pcfile,StreamMode!)
ll_bytes = FileReadEx(li_fnum, blb_pcfile_data)
ls_pcfile_data = string(blb_pcfile_data, EncodingANSI!)
Thank you
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.