Skip to Content
author's profile photo Former Member
Former Member

OMS server cannot accept request xml with China character?

Hi, Dear experts I am doing some testing from China version b2c accelerator and as you can imagine, the orders placed will have some Chinese characters. However, when I tried to post the REST xml data with some Chinese character into OMS, it failed, but if I remove all those Chinese characters, it succeeded. Does anyone have any hints on this? Anything configuration needed to be adjusted in OMS side maybe? Thanks a lot.

Sample xml file POST http://localhost:8080/oms-rest-webapp/webresources/orders Accept: application/xml,application/json Content-Type: application/xml X-locale: zh X-role: accelerator X-tenantId: single

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2014 at 03:26 PM

    I tested with restclient to post your order with Chinese characters. There is no problem. Order info including Chinese can also be displayed in omsbackoffice smoothly.

    The potential reason is the sending side encoding is not UTF-8.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2014 at 10:03 AM

    This may caused by the character setting in DB side. If it is using hsql, it should be work. If using mysql, please make sure you have following configuration in my.ini file:

     [client]
     default-character-set=utf8
     [mysqld]
     character-set-server=utf8
     collation-server=utf8_general_ci
    
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.