on 01-22-2016 3:17 PM
Hi,
I am trying to understand in what scenario can use different encoding schemes ex. UTF-16.
Based on my understanding when PI / PO picks up a file, it gets encoded using UTF-8 by default. Also an option is available in sender adapter of File type which when we select to Text, we can specify differetnt encoding like UTF-16. I have tried to using UTF-16 in the scenario which is working fine using File type as binary (default encoding as UF-8) and it stopped working and am able to see some funny characters in the payload. Can you please let me know why can't we use different encoding in this scenario.
Regards,
Abhishek
Thanks for your responses.
Can you please let me know how d I know the file that I am receiving from the partner is encodedinto which format. Can I understand the sameby opening the file or do we have any tool which will help us to do that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ask your partner about this information. File format and encoding is part of the specification and should not be "guessed".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you have understood something wrong. SAP PI tries to transform the encoding of the file to UTF-8. Therefore, you apply the source encoding to the channel. When your source file has encoding UTF-8, it does not make sense to put any other value here. If you want to receive a UTF-16 file, you can use a receiver file adapter and put the target encoding as UTF-16, that will work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhishek,
If you have the the characters which occupy 2 bytes example Japanese characters then you need to use UTF-16, if you have the characters which occupy one byte then you can use UTF-8.
If you want more about UTF-8 and UTF-16 check below link.
http://stackoverflow.com/questions/4655250/difference-between-utf-8-and-utf-16
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.