Hi, I did some investigations but got no solution :(.
Something that I see it works not as wanted is InputSuggestAjaxRenderer.encodeAjax does not care about the charset. So, it uses UnicodeEncoder.encode and tries to convert bytes from UTF-8 (for special characters there are 2 bytes for one char) to something that can be used in html. So, for "\u015F" it calculates 2 values for html, one for each byte. I don't want to say that UnicodeEncoder.encode is wrong, I only want to say that in the way it is used for this component in InputSuggestAjaxRenderer.encodeAjax it is clear that the result is not that wanted.
Maybe you can give me a hint how to solve this problem. Best regards, Alin.
Hi, the charset issue is on my todo list. Unfortunately there is not that much time left at the moment. Hopefully i get working on this in the near future. If its that urgent for you, you may have to do a deeper look at it on your own. The problem should not be the biggest issue. cheers, Gerald On 10/11/06, Alin Dosoniu <[EMAIL PROTECTED]> wrote:Hi, Only wanted to tell you the following scenario I did: In example from tomahawk I altered a little bit the code like this: public String getSuggestValue() { if (suggestValue == null) { suggestValue = "\u015F"; } return suggestValue; }the value "\u015F" represents 1 character from iso-8859-2 that converted forhtml has value "ş". So, I thought that in inputSuggestAjax.jsf, when displaying the page, the character should be correctly shown. But, it is not. :(. Instead exactly this value ("ş") is shown in "default suggest" selectbox. After this test, I think there is another issue regarding charset on inputSuggestAjax component:the control does not render correct a value that is a valid html character("ş" == "s"). Any help on this issue is appreciated. Thank you,Alin

