You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Jacopo Cappellato <ja...@hotwaxmedia.com> on 2012/04/19 08:22:15 UTC

Re: svn commit: r1327835 - in /ofbiz/trunk/framework: jcr/src/org/ofbiz/jcr/test/JackrabbitTests.java widget/src/org/ofbiz/widget/WidgetWorker.java

Hi Sascha,

is this the right way to fix the test?

Jacopo

On Apr 19, 2012, at 7:58 AM, sascharodekamp@apache.org wrote:

> Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java?rev=1327835&r1=1327834&r2=1327835&view=diff
> ==============================================================================
> --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java (original)
> +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java Thu Apr 19 05:58:29 2012
> @@ -379,10 +379,14 @@ public class WidgetWorker {
>                     returnValue = df.format((java.util.Date) retVal);
>                 } else {
>                     try {
> -                        returnValue = URLEncoder.encode(retVal.toString(), Charset.forName("UTF-8").displayName());
> +                        returnValue = URLEncoder.encode(retVal.toString(), Charset.forName("ISO-8859-1").displayName());
>                     } catch (UnsupportedEncodingException e) {
>                         Debug.logError(e, module);
>                     }
> +
> +                    //StringUtil.SimpleEncoder simpleEncoder = (StringUtil.SimpleEncoder) context.get("simpleEncoder");
> +                    //returnValue = simpleEncoder.encode(retVal.toString());
> +
>                 }
>                 return returnValue;
>             } else {
> 


Re: svn commit: r1327835 - in /ofbiz/trunk/framework: jcr/src/org/ofbiz/jcr/test/JackrabbitTests.java widget/src/org/ofbiz/widget/WidgetWorker.java

Posted by Sascha Rodekamp <sa...@googlemail.com>.
Hi Jacopo, year right, ups. The Widget Worker sneaked in the commit list ;-)

2012/4/19 Jacopo Cappellato <ja...@hotwaxmedia.com>:
> Hi Sascha,
>
> is this the right way to fix the test?
>
> Jacopo
>
> On Apr 19, 2012, at 7:58 AM, sascharodekamp@apache.org wrote:
>
>> Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
>> URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java?rev=1327835&r1=1327834&r2=1327835&view=diff
>> ==============================================================================
>> --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java (original)
>> +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java Thu Apr 19 05:58:29 2012
>> @@ -379,10 +379,14 @@ public class WidgetWorker {
>>                     returnValue = df.format((java.util.Date) retVal);
>>                 } else {
>>                     try {
>> -                        returnValue = URLEncoder.encode(retVal.toString(), Charset.forName("UTF-8").displayName());
>> +                        returnValue = URLEncoder.encode(retVal.toString(), Charset.forName("ISO-8859-1").displayName());
>>                     } catch (UnsupportedEncodingException e) {
>>                         Debug.logError(e, module);
>>                     }
>> +
>> +                    //StringUtil.SimpleEncoder simpleEncoder = (StringUtil.SimpleEncoder) context.get("simpleEncoder");
>> +                    //returnValue = simpleEncoder.encode(retVal.toString());
>> +
>>                 }
>>                 return returnValue;
>>             } else {
>>
>



-- 

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de