You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Taher Alkhateeb (JIRA)" <ji...@apache.org> on 2012/05/31 23:42:23 UTC

[jira] [Created] (OFBIZ-4915) LookupDecorator not working with Arabic characters

Taher Alkhateeb created OFBIZ-4915:
--------------------------------------

             Summary: LookupDecorator not working with Arabic characters
                 Key: OFBIZ-4915
                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
             Project: OFBiz
          Issue Type: Bug
          Components: ALL COMPONENTS
    Affects Versions: Release Branch 12.04
            Reporter: Taher Alkhateeb
            Priority: Minor


Any form that uses the LookupDecorator in framework/common/widget/CommonScreens.xml would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.

For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID" pop-up window, and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (OFBIZ-4915) LookupDecorator not working with Arabic characters

Posted by "Taher Alkhateeb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Taher Alkhateeb updated OFBIZ-4915:
-----------------------------------

    Description: 
Any form that uses the LookupDecorator in framework/common/widget/CommonScreens.xml would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.

For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID" pop-up window, and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)

Also, after some investigation, it seems definitely the case of a unicode not being applied. When I convert the above Arabic to unicode and then paste the unicode directly to the input box it works!

  was:
Any form that uses the LookupDecorator in framework/common/widget/CommonScreens.xml would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.

For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID" pop-up window, and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)

    
> LookupDecorator not working with Arabic characters
> --------------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Priority: Minor
>              Labels: decorator, javascript, lookup
>         Attachments: search_party_after_submit.png, search_party_before_submit.png
>
>
> Any form that uses the LookupDecorator in framework/common/widget/CommonScreens.xml would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID" pop-up window, and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, it seems definitely the case of a unicode not being applied. When I convert the above Arabic to unicode and then paste the unicode directly to the input box it works!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (OFBIZ-4915) LookupDecorator not working with Arabic characters

Posted by "Taher Alkhateeb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Taher Alkhateeb updated OFBIZ-4915:
-----------------------------------

    Attachment: search_party_before_submit.png

Typing search for name before pressing submit button
                
> LookupDecorator not working with Arabic characters
> --------------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Priority: Minor
>              Labels: decorator, javascript, lookup
>         Attachments: search_party_before_submit.png
>
>
> Any form that uses the LookupDecorator in framework/common/widget/CommonScreens.xml would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID" pop-up window, and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Taher Alkhateeb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13292339#comment-13292339 ] 

Taher Alkhateeb commented on OFBIZ-4915:
----------------------------------------

Well, I'm still investigating this issue. It seems jQuery + AJAX + unicode may misbehave sometimes. Now the solutions I saw are quite nasty digging to the heart of code (e.g. http://stackoverflow.com/questions/2178935/jquery-ajax-call-with-unicode-proper-way-to-post-unicode-data)

My objective is not to touch a single line of jQuery anywhere, It should simply be some declaration in CommonScreens.xml of the common component to add unicode support using "layoutSettings.javaScripts[+0]=YourFixHere". However, I'm just not sure what happens after declaring these lookup fields, where the code is executed and what is exactly called. I tried tracing ConfigXMLReader but got lost quickly into it.

I will continue to work some more, but appreciate any push I can get on this.
                
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 11.04, Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Assignee: Jacques Le Roux
>            Priority: Minor
>              Labels: form, jQuery, javascript, lookup
>         Attachments: search_party_after_submit.png, search_party_before_submit.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Sascha Rodekamp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402881#comment-13402881 ] 

Sascha Rodekamp commented on OFBIZ-4915:
----------------------------------------

Hi Taher,
when sending data to the server I used the jQuery serialize() function to read the input parameter form the form. The serialize function uses standard URL encoding. Could this be a problem.
you can find the code in the function lookupFormAjaxRequest().

Have a good day
Sascha
                
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 11.04, Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Assignee: Jacques Le Roux
>            Priority: Minor
>              Labels: form, jQuery, javascript, lookup
>         Attachments: XHR_Screenshot_27_06_2012.png, search_party_after_submit.png, search_party_before_submit.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Taher Alkhateeb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402378#comment-13402378 ] 

Taher Alkhateeb commented on OFBIZ-4915:
----------------------------------------

Hi Paul, thank you for the feedback.

Well, as shown in the attached screenshot, the XmlHttpRequest object is indeed encoded with UTF-8. The "Accept-Language" header is English but I doubt this has any effect on the encoding.

Very intriguing and puzzling. I'm beginning to suspect that the fieldlookup.js script is doing some processing to the text before submitting it to the server that changes the encoding. I'll keep digging, this is one well hidden bug!
                
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 11.04, Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Assignee: Jacques Le Roux
>            Priority: Minor
>              Labels: form, jQuery, javascript, lookup
>         Attachments: XHR_Screenshot_27_06_2012.png, search_party_after_submit.png, search_party_before_submit.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Taher Alkhateeb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Taher Alkhateeb updated OFBIZ-4915:
-----------------------------------

    Attachment: XHR_Screenshot_27_06_2012.png
    
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 11.04, Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Assignee: Jacques Le Roux
>            Priority: Minor
>              Labels: form, jQuery, javascript, lookup
>         Attachments: XHR_Screenshot_27_06_2012.png, search_party_after_submit.png, search_party_before_submit.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Taher Alkhateeb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Taher Alkhateeb updated OFBIZ-4915:
-----------------------------------

    Affects Version/s: Release Branch 11.04
    
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 11.04, Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Priority: Minor
>              Labels: form, javascript, lookup
>         Attachments: search_party_after_submit.png, search_party_before_submit.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Taher Alkhateeb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400215#comment-13400215 ] 

Taher Alkhateeb commented on OFBIZ-4915:
----------------------------------------

OK, I think I tracked it to its source which is causing this whole headache:

Basically, $OFBIZ_HOME/framework/widget/templates/HtmlFormMacroLibrary.ftl is calling the script $OFBIZ_HOME//framework/images/webapp/images/fieldlookup.js

More specifically, the template is instantiating a new object using the following code snippet:

jQuery(document).ready(function(){
  new ConstructLookup("${fieldFormName}", "${id}", document.${formName?html}.${name?html}, <#if descriptionFieldName?has_content>document.${formName?html}.${descriptionFieldName}<#else>null</#if>, "${formName?html}", "${width}", "${height}", "${position}", "${fadeBackground}", <#if ajaxEnabled?has_content && ajaxEnabled>"${ajaxUrl}", ${showDescription}<#else>"", false</#if>, "${presentation!}", "${defaultMinLength!2}", "${defaultDelay!300}"

I think I need to add [ contentType: "application/x-www-form-urlencoded; charset=UTF-8" ] somewhere in this code to make it work
                
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 11.04, Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Assignee: Jacques Le Roux
>            Priority: Minor
>              Labels: form, jQuery, javascript, lookup
>         Attachments: search_party_after_submit.png, search_party_before_submit.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288005#comment-13288005 ] 

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

Interesting, thanks for report. Do you think you will work on a solution? I vaguely remember having seens already issue related to our js/JQuery code not using "UTF8" in (at least) another place...
                
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 11.04, Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Priority: Minor
>              Labels: form, jQuery, javascript, lookup
>         Attachments: search_party_after_submit.png, search_party_before_submit.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Taher Alkhateeb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Taher Alkhateeb updated OFBIZ-4915:
-----------------------------------

    Description: 
Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.

For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)

Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

  was:
Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.

For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)

Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data.

    
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Priority: Minor
>              Labels: decorator, javascript, lookup
>         Attachments: search_party_after_submit.png, search_party_before_submit.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (OFBIZ-4915) LookupDecorator not working with Arabic characters

Posted by "Taher Alkhateeb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Taher Alkhateeb updated OFBIZ-4915:
-----------------------------------

    Attachment: search_party_after_submit.png

No results returned and encoding of searched text changes
                
> LookupDecorator not working with Arabic characters
> --------------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Priority: Minor
>              Labels: decorator, javascript, lookup
>         Attachments: search_party_after_submit.png, search_party_before_submit.png
>
>
> Any form that uses the LookupDecorator in framework/common/widget/CommonScreens.xml would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID" pop-up window, and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Taher Alkhateeb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Taher Alkhateeb updated OFBIZ-4915:
-----------------------------------

    Description: 
Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.

For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)

Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data.

  was:
Any form that uses the LookupDecorator in framework/common/widget/CommonScreens.xml would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.

For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID" pop-up window, and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)

Also, after some investigation, it seems definitely the case of a unicode not being applied. When I convert the above Arabic to unicode and then paste the unicode directly to the input box it works!

        Summary: Lookup Form not working with Arabic characters  (was: LookupDecorator not working with Arabic characters)
    
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Priority: Minor
>              Labels: decorator, javascript, lookup
>         Attachments: search_party_after_submit.png, search_party_before_submit.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13292330#comment-13292330 ] 

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

Sorry I had 2 very busy weeks, did hnot get much chances to work on OFBiz project. I Will try to have a look this weekend... did you made some more progress already?
                
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 11.04, Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Assignee: Jacques Le Roux
>            Priority: Minor
>              Labels: form, jQuery, javascript, lookup
>         Attachments: search_party_after_submit.png, search_party_before_submit.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Paul Foxworthy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401169#comment-13401169 ] 

Paul Foxworthy commented on OFBIZ-4915:
---------------------------------------

Hi Taher,

ConstructLookup and related functions end up calling jQuery.ajax and don't set a content type. According to the jQuery.ajax docs at

http://api.jquery.com/jQuery.ajax/

the default content type is "application/x-www-form-urlencoded", and data will always be transmitted to the server using UTF-8 charset

So maybe the problem is elsewhere. You could use FireBug or some other tool to verify the HTTP request leaving OFBiz and check the content type.

Cheers

Paul Foxworthy
                
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 11.04, Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Assignee: Jacques Le Roux
>            Priority: Minor
>              Labels: form, jQuery, javascript, lookup
>         Attachments: search_party_after_submit.png, search_party_before_submit.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Taher Alkhateeb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Taher Alkhateeb updated OFBIZ-4915:
-----------------------------------

    Attachment: fieldlookup.patch
    
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 11.04, Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Assignee: Jacques Le Roux
>            Priority: Minor
>              Labels: form, jQuery, javascript, lookup
>         Attachments: fieldlookup.patch, search_party_after_submit.png, search_party_before_submit.png, XHR_Screenshot_27_06_2012.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-4915.
----------------------------------

    Assignee: Sascha Rodekamp  (was: Jacques Le Roux)
    
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 11.04, Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Assignee: Sascha Rodekamp
>            Priority: Minor
>              Labels: form, jQuery, javascript, lookup
>             Fix For: Release Branch 12.04
>
>         Attachments: fieldlookup.patch, search_party_after_submit.png, search_party_before_submit.png, XHR_Screenshot_27_06_2012.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux reassigned OFBIZ-4915:
--------------------------------------

    Assignee: Jacques Le Roux
    
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 11.04, Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Assignee: Jacques Le Roux
>            Priority: Minor
>              Labels: form, jQuery, javascript, lookup
>         Attachments: search_party_after_submit.png, search_party_before_submit.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Taher Alkhateeb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288246#comment-13288246 ] 

Taher Alkhateeb commented on OFBIZ-4915:
----------------------------------------

Hi Jacques,

Yes I would definitely attempt a solution, However I do need some help since I'm not yet advanced. More specifically, I can trace all business logic but get stuck at the XML level (it becomes sort of like blackbox xerces magic to me). Where should I start debugging to trace what happens after parsing the <lookup> element? I need that to know what javascript code is called exactly. I'm swimming all over place and feel a bit overwhelmed. Any guidance or documentation on the underlying XML parsing infrastructure would be of immense help.
                
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 11.04, Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Priority: Minor
>              Labels: form, jQuery, javascript, lookup
>         Attachments: search_party_after_submit.png, search_party_before_submit.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Sascha Rodekamp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13442993#comment-13442993 ] 

Sascha Rodekamp commented on OFBIZ-4915:
----------------------------------------

Hi Taher,
thanks for working on this issue. I committed your patch in
release 11.04 @Rev 1377987
release 12.04 @Rev 1377986
trunk @Rev 1377988

Regards Sascha
                
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 11.04, Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Assignee: Jacques Le Roux
>            Priority: Minor
>              Labels: form, jQuery, javascript, lookup
>             Fix For: Release Branch 12.04
>
>         Attachments: fieldlookup.patch, search_party_after_submit.png, search_party_before_submit.png, XHR_Screenshot_27_06_2012.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Taher Alkhateeb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Taher Alkhateeb updated OFBIZ-4915:
-----------------------------------

    Labels: form jQuery javascript lookup  (was: form javascript lookup)
    
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 11.04, Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Priority: Minor
>              Labels: form, jQuery, javascript, lookup
>         Attachments: search_party_after_submit.png, search_party_before_submit.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288255#comment-13288255 ] 

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

Sure, I will do as soon as I will get a chance. Thanks for your help.
                
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 11.04, Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Priority: Minor
>              Labels: form, jQuery, javascript, lookup
>         Attachments: search_party_after_submit.png, search_party_before_submit.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Comment Edited] (OFBIZ-4915) Lookup Form not working with Arabic characters

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288005#comment-13288005 ] 

Jacques Le Roux edited comment on OFBIZ-4915 at 6/2/12 7:07 PM:
----------------------------------------------------------------

== TYPO ==
Interesting, thanks for report. Do you think you will work on a solution? I vaguely remember having seen already issue/s related to our js/JQuery code not using "UTF8" in (at 
least) another place...
                
      was (Author: jacques.le.roux):
    Interesting, thanks for report. Do you think you will work on a solution? I vaguely remember having seens already issue related to our js/JQuery code not using "UTF8" in (at least) another place...
                  
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
>                 Key: OFBIZ-4915
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4915
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 11.04, Release Branch 12.04
>            Reporter: Taher Alkhateeb
>            Priority: Minor
>              Labels: form, jQuery, javascript, lookup
>         Attachments: search_party_after_submit.png, search_party_before_submit.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders and click on "Party ID", and search the firstname or lastname in arabic, no values are returned and the value in the search box changes from arabic to some weird encoding ( e.g. "حسن" becomes حس٠)
> Also, after some investigation, I came to the realization that this only happens when the lookup field has presentation="layer", if however, the presentation="window" then it works normally which leads me to conclude definitely that this is javascript/jQuery issue of parsing input data. More specifically, this is javascript not processing with the correct encoding (unicode in this case). I know this because if I paste the unicode representation directly to the input box then it searches correctly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira