cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI encoding issue for Chinese and Special Character

mdejesus
Participant
0 Kudos

Hi Experts,

Currently we are building an interface with IDOC to File scenario.

During testing, we encountered an issue where the registered trade mark symbol ® from the IDOC was transformed into "??" in the flat file.

Source Data

Flat File

By the way, we used GB18030 on file encoding to handle the Chinese characters that the source IDOC also contains.

Please advise on how we can handle both the special character and Chinese character at the same time.

Many thanks!

Regards,

Marc

Accepted Solutions (1)

Accepted Solutions (1)

Dimitri
Active Contributor
0 Kudos

Just try encoding ISO-8859-1

mdejesus
Participant
0 Kudos

Hi Dimitri,

Thanks for your reply.

Encoding ISO-8859-1 solved the issue for the registered trademark symbol but it also affects the Chinese characters.

Is there a module parameter or other standard functions where we can handle both special character ® and Chinese characters?

Appreciate your help!

Former Member
0 Kudos

use Unicode encoding, e.g. UTF-8


(iso-8859-1 is Western European Encoding, which does not make sense for Chinese characters)

Dimitri
Active Contributor
0 Kudos

try UTF-8, but make sure your SAP system and RFC connections are unicode enabled.

mdejesus
Participant
0 Kudos

Hi Christian and Dimitri,

It's working now!

Many thanks on your help.

Earlier we tried to remove the file encoding hoping that UTF-8 is the default encoding for file content conversion but it's still not working.

But when we really put UTF-8, it is already working.

Flat File

Configuration

We also make sure that SAP system and RFC connection are Unicode enabled.

Regards,

Marc

Answers (1)

Answers (1)

former_member204100
Active Participant
0 Kudos

Hi Marc,

unicode should do the trick.

Or you might also try to use the Binary transfer mode instead of the Text in the File Type settings.

Best Regards,

Viktor