Author: jleroux
Date: Mon Jan 16 16:26:42 2012
New Revision: 1232053
URL:
http://svn.apache.org/viewvc?rev=1232053&view=revLog:
A patch from Christoph Neuroth "Autocomplete / Suggest does not work with umlauts"
https://issues.apache.org/jira/browse/OFBIZ-4661Steps to Reproduce:
Change the internal_name of a product to "Kochlöffel" (that's German for cooking spoon. Just in case you ever need one while in a German-speaking country and don't have a dictionary handy).
Go to the catalog and use the product search box to the left to search for "Koch", you should see the product as a suggestion
Clear the input field and search for "löffel" instead -> the product is not found.
The reason for this is that the special characters have to be url encoded for the GET request, but are never decoded. Easiest way to fix this is just to use a POST request instead.
jleroux: Post uses ISO-8859-1 as default encoding. But as we set a charset=UTF-8 in our header all characters should be handled correly (i18n concern)
Modified:
ofbiz/trunk/framework/images/webapp/images/selectall.js
Modified: ofbiz/trunk/framework/images/webapp/images/selectall.js
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/selectall.js?rev=1232053&r1=1232052&r2=1232053&view=diff==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/selectall.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/selectall.js Mon Jan 16 16:26:42 2012
@@ -411,6 +411,7 @@ function ajaxAutoCompleter(areaCsvString
source: function(request, response){
jQuery.ajax({
url: url,
+ type: "post",
async: false,
data: {term : request.term},
success: function(data) {