[ 
https://issues.apache.org/jira/browse/OFBIZ-5929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14306824#comment-14306824
 ] 

Jacques Le Roux commented on OFBIZ-5929:
----------------------------------------

Quoting tofumiyo...@outlook.com on dev ML
{quote}
I also find that ofbiz’s conponent of ecommerce cann’t process japanese 
properly.

The reason is that httpservletrequest’s mothod setCharacterEncoding is called 
too late.

The spec of method setCharacterEncoding is writed as follow:

Overrides the name of the character encoding used in the body of this request. 
This method must be called prior to reading request parameters or reading input 
using getReader(). Otherwise, it has no effect. 

A filer should exist for calling setCharacterEncoding right after http request 
arrived.

and other setCharacterEncoding’s calls should be deleted.
{quote}


> wrong Chinese  text shown after create New Contact Information
> --------------------------------------------------------------
>
>                 Key: OFBIZ-5929
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5929
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: Release Branch 13.07, 12.04.04
>            Reporter: ofbiz_com_cn
>            Priority: Minor
>
> steps to reproduce:
> 1. login as admin/ofbiz
> 2. click setting to create New Contact Information
> 3.  type chinese in the name or shipping address field like: 陈三
> 5. click save to update the ship address info
> 6. You will find that Chinese are replaced with wrong character
> I am not sure if the correct parameter encoded be fetched in file 
> ContactMechServices.java. In the database(postgresql), the Chinese character 
> is stored wrong also. All encode style is UTF-8 for both database and page



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to