Alin Dosoniu schrieb:
> Hi,
>
> Thank you for info. This is how I tried to set dojo:
> I called <s:dojoInitializer bindEncoding="ISO-8859-2"/> on the same page
> with inputSuggestAjax control.
> Its declaration is
> <s:inputSuggestAjax suggestedItemsMethod="#{buss.getItems}"
> value="#{buss.itemSelected}" maxSuggestedItems="5"
> style="width: 300px;" id="inputSuggest"
> charset="ISO-8859-2"/>
>
> The string that I get in "public List getItems(String prefix, Integer
> maxSize)"
> seems to be UTF-8 encoded. But I am not sure. :(. I mean I try to
> convert it with this
> prefix = new String(prefix.getBytes("UTF-8"), "ISO-8859-2"); but I do
> not get a good char representation in "ISO-8859-2".
>
> If you have any other ideas how to try, I can test them.
>
> Regards,
> Alin.
>
Can you post one of those strings you get on the server side?
Is there a %20 or something similar in between in case of a blank.
There are various encodings utilized besides a pure character encoding.
It is very common that for ajax requests a javascript sided encoding is
added to the mix (escaping for instance)
and this is not unescaped properly
(I recently had a case where a properly escaped string was not unescaped
for whatever reason by the server side commons.lang class, I switched
then to another unescaping code for exactly this reason)