You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jens Zastrow <ma...@jens-zastrow.de> on 2010/05/11 13:16:28 UTC
AjaxEditableLabel unicode issue
Hi,
I cannot enter/save unicode chars with a AjaxEditableLabel (e.g.
german/arabic).
Enter: 'ü'
Value: 'ü'
All unicode-chars seems to be converted to utf-8 since the single char ü
is converter to double-bytes?
Thanks
Jens
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxEditableLabel unicode issue
Posted by Jens Zastrow <ma...@jens-zastrow.de>.
Hi,
We switched from a http to a ajp based tomcat-connector and didnt
configured the URIEncoding="UTF-8" properly.
Thanks a lot, everything is working now.
Am 11.05.2010 13:34, schrieb Steve Swinsburg:
> Hi,
>
> Is this after the value has been submitted and perhaps stored in a database, then retrieved and displayed again? If so, is your database setup as UTF-8? Also, if using Tomcat, is the connector setup as UTF-8 also?
>
> For Wicket, try setting this *:
>
> getRequestCycleSettings().setResponseRequestEncoding("UTF-8");
> getMarkupSettings().setDefaultMarkupEncoding("UTF-8");
>
> in your Application#init
>
> If you don't set the default markup encoding explicitly, the default for it is the 'os provided encoding' (see:
> IMarkupSettings#getDefaultMarkupEncoding)
>
> If Tomcat, add URIEncoding="UTF-8" to your connector.
>
> See if that helps.
>
> cheers,
> Steve
>
> * came up on list back in early 2009.
>
>
> On 11/05/2010, at 9:16 PM, Jens Zastrow wrote:
>
>
>> Hi,
>>
>> I cannot enter/save unicode chars with a AjaxEditableLabel (e.g. german/arabic).
>>
>> Enter: 'ü'
>> Value: 'ü'
>>
>> All unicode-chars seems to be converted to utf-8 since the single char ü is converter to double-bytes?
>>
>> Thanks
>> Jens
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
dipl. inform jens zastrow
phone | +49.152.04840108
mail | mail@jens-zastrow.de
web | http://jens-zastrow.de
xing | http://www.xing.com/profile/Jens_Zastrow
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxEditableLabel unicode issue
Posted by Steve Swinsburg <st...@gmail.com>.
Hi,
Is this after the value has been submitted and perhaps stored in a database, then retrieved and displayed again? If so, is your database setup as UTF-8? Also, if using Tomcat, is the connector setup as UTF-8 also?
For Wicket, try setting this *:
getRequestCycleSettings().setResponseRequestEncoding("UTF-8");
getMarkupSettings().setDefaultMarkupEncoding("UTF-8");
in your Application#init
If you don't set the default markup encoding explicitly, the default for it is the 'os provided encoding' (see:
IMarkupSettings#getDefaultMarkupEncoding)
If Tomcat, add URIEncoding="UTF-8" to your connector.
See if that helps.
cheers,
Steve
* came up on list back in early 2009.
On 11/05/2010, at 9:16 PM, Jens Zastrow wrote:
> Hi,
>
> I cannot enter/save unicode chars with a AjaxEditableLabel (e.g. german/arabic).
>
> Enter: 'ü'
> Value: 'ü'
>
> All unicode-chars seems to be converted to utf-8 since the single char ü is converter to double-bytes?
>
> Thanks
> Jens
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org