Skip to Content
avatar image
-1
Former Member

Chinese String value convert to UTF-8

Hi Gurus,

how to make the Chinese characters converted to UTF-8.

URLParameterEntry.Value = "公司名称"; //Company Name

Best regards,

Leo.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 26 at 09:25 AM

    Solution:

    URLParameterEntry.Value = URL.Encode(String);
    Add comment
    10|10000 characters needed characters exceeded

  • Feb 23 at 09:40 AM

    Encode your value:

    JAVA:

    var fullName = "伯纳德";
    var encodedFullName = URLEncoder.encode(fullName,"UTF-8");

    JavaScript:

    var fullName = "伯纳德";     
    var encodedFullName = encodeURI(fullName);
    Add comment
    10|10000 characters needed characters exceeded