|
[ 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 |
|
In reply to this post by Nicolas Malin (Jira)
[ 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 |
|
In reply to this post by Nicolas Malin (Jira)
[ 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 |
| Free forum by Nabble | Edit this page |
