Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Chinese language support in WDP

Hi

I want to pick up the Chinese characters from database and show it on WDP UI. On UI it all shows as junk characters.... How can I enable my WDP Application to show the Chinese characters correctly...

Regards

replied

Hi,

in Dbase i think encoding scheme is there, they need to set that one.

BY the way if u want to manage from application side that u can do with the help of following code:-

import java.io.UnsupportedEncodingException;

public class MultiLingualUtil {

/**This method will convert the String to UTF-16 Unicode String */

public static String convertToUnicodeString(String strMessage){

String tempUnicodeMessage = null;

try {

tempUnicodeMessage = new String(strMessage.getBytes("UTF-16"));

} catch (UnsupportedEncodingException e) {

e.printStackTrace();

}

return tempUnicodeMessage;

}

/**This method will convert the UTF-16 Unicode String to String */

public static String convertFromUnicodeString(String strUnicode){

String unicodeMessage = null;

try {

unicodeMessage = new String(strUnicode.getBytes(), "UTF-16");

} catch (UnsupportedEncodingException e) {

e.printStackTrace();

}

return unicodeMessage;

}

}

Hope this may help you...

Deepak

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question