on 07-01-2008 12:14 PM
Hi everyone.
I've got a zipped .txt that i unzip ussing PayloadZipBean module. It works fine but my problem is that i get some rare characters.
Instead of á or ó or ì, i get a ? or # and so long.
Does anybody know how to keep 'original' characters?
Regards,
Inigo.
Try using the MessageTransformBean to set the content type to the correct character set. Put the MessageTransformBean after the zip module. Set parameter: Transer.ContentType = text/plain;charset="ISO-8859-1"
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan.
I receive an attachment in a sender webservice. This attachment is a ZIP file that contains a TXT file inside.
What i have in file receiver adapter is :
localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean transform
localejbs/AF_Modules/PayloadZipBean Local Enterprise Bean zip
localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean contentType
CallSapAdapter Local Enterprise Bean 0
************************************************************************************++++
transform swap.keyName payload-name
transform swap.keyValue attachment-1
zip zip.mode unzip
contentType Transfer.ContentType text/plain;charset="ISO-8859-1"
With this, i still haven't got the correct characters (á, é, í, ó, ú, ò, è and so long)
Kind regards,
Inigo.
Hi Inigo,
I am sorry, I have misspelled the paramter.
It should be: Transform.ContentType
See online help:
http://help.sap.com/saphelp_nw04/helpdata/en/57/0b2c4142aef623e10000000a155106/frameset.htm
Regards
Stefan
Hi again, Stefan.
The TXT file that is inside the ZIP file is an ANSI file.
If i change the ANSI to UTF-8, works. Well, it doesn't completely work because i got some strange chars. First one at the first position of the first line and second one, at the end position of the last line.
Any idea?
Kind regards,
Inigo
Hi,
Check out...
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]
Regards
Arpil
Reward points for useful answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you using binary mode or text mode in the receiver communication channel. try using binary.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.