on 10-28-2015 3:29 PM
Hello All,
I'm trying to convert a text file from ASNI to UTF-8
my sender is a sftp and receiver is file(nfs),
I'm trying to convert in the encoding in the receiver adapter.
I tried both the methods,
using AF_Modules/MessageTransformBean text/plain;charset=ISO-8859-1
"AF_Modules/TextCodepageConversionBean" UTF-8
or even specifying "Filetype" Text (UTF-8)
the message shows successful, show the following..
Conversion: converting codepage from ISO-8859-1 to utf-8
but still the file encoding is shown as ANSI when viewed in the textpad editor.
or even try to open the file in AL11 it shows "#" symbol.
am I missing anything? I saw many blogs but didn't help me.
Regards,
George
Hi George,
Could you add screenshot of "Module" tab in your communication channel please?
I'm interested in "Processing Sequence" and "Module Configuration".
It will be much easier to help you.
Regards,
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
George,
1. I think entries Module Key "readfile" and "encoding" are redundant. Please remove them and test.
2. Source systems is sending ASCII characters, so target file will be considered as ASCII file. You can force target to consider it as UTF-8 by adding BOM to starting of file. Example 4 in this blog
George,
Here input is ASCII, it has only 127 characters. It will be same in ASCII, CP1252, ISO 8859-1 and UTF-8 (uses 1 byte).
Two ways to let target know target file is UTF-8 encoded
1. In mapping add character which needs 2 or more bytes in UTF-8. Like, add a € to target data.
2. Add BOM at starting of file (using Java Map) to force target to think it is UFT-8 encoded.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.