-
1. Re: JBoss ESB messy code
zhlwjy Jan 23, 2013 4:25 AM (in response to zhlwjy)I must have my custom action to change the encoding code of message content ? Is anyway to solve this problem without to coding?
-
2. Re: JBoss ESB messy code
tadayosi Jan 23, 2013 6:04 AM (in response to zhlwjy)Hello,
Did you set up the character encoding properly in the csv-to-xml smooks config? This would be like below:
<csv:reader ... encoding="..." />
HTH
-
3. Re: JBoss ESB messy code
zhlwjy Jan 23, 2013 8:08 PM (in response to tadayosi)Hi Sato
Thank you very much for your reply! use your methord ,I have right xml data.
But I have another question:
Can i control the encoding of the csv data which I read from csv file before i make csv to xml ?
The esb read csv data to the message, this step ,can i do something ? because i print the csv data also have messy code !
-
4. Re: JBoss ESB messy code
zhlwjy Jan 23, 2013 8:35 PM (in response to zhlwjy)Hi Sato
Another problem:
the first char that also have messy code , and other data is ok !
the csv content:
1,中国,101,test1,2012/2/25 0:00:00,10,123
the xml content:
<ClassID>?1</ClassID><ClassName>中国</ClassName>.............
I use .net 2010 make the csv file with UTF-8,this error happend!
But i make this csv file Manual in OS , then the data do not hava messy code !
-
5. Re: JBoss ESB messy code
zhlwjy Jan 24, 2013 1:04 AM (in response to zhlwjy)I find that if i use UTF-8(false) to encoding the csv file ,then the data is OK.
I think that UTF-8 = UTF-8(true) in EBS, so <csv:reader ... encoding="UTF-8" /> can not be right to encode .
Thank you for sato to reply my question so kindly!
-
6. Re: JBoss ESB messy code
tadayosi Jan 24, 2013 5:49 AM (in response to zhlwjy)I guess your UTF-8 encoded CSV file had BOM (http://en.wikipedia.org/wiki/Byte_order_mark). Anyway, I'm glad to hear that you could solve the issue