Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Messy code for Chinese

Former Member
0 Likes
1,408

Hi all, I want to upload vendor master data to SAP system in LSMW, but when I fill the fields in Chinese, the Chinese texts will not be showed. The Chinese texts show as messy codes, how should I do if I want to show the Chinese? Many thanks in advance!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
980

ANSI only supports the standard 256 characters you see on your typical keyboard (single byte). UTF-8 supports the 65,536 Unicode character set (double byte) needed to handle all the different languages used throughout the world. If you send Unicode but tell the system to expect ANSI it will read each double byte Unicode character as two single byte ANSI characters. Which will turn it all into gibberish.

4 REPLIES 4
Read only

Former Member
0 Likes
980

Is your SAP system Unicode?

What is the format of the upload file? UTF-8?

Read only

0 Likes
980

Yes, the SAP system is Unicode, and the file type is .TXT.

Read only

0 Likes
980

Many thanks for your help, After I change the coding of the text file from default value 'ANSI' to 'UTF-8', the Chinese can be showed, would please tell me the reason? Why I should use 'UTF-8'?

Read only

Former Member
0 Likes
981

ANSI only supports the standard 256 characters you see on your typical keyboard (single byte). UTF-8 supports the 65,536 Unicode character set (double byte) needed to handle all the different languages used throughout the world. If you send Unicode but tell the system to expect ANSI it will read each double byte Unicode character as two single byte ANSI characters. Which will turn it all into gibberish.