We're using the html:form element and we have the acceptCharset attribute set to "UTF-8" and when we enter a unicode character in a textarea in this form element, the UTF-8 character (in this case \u2022, the bullet symbol: •) displays correctly. However, when the form is submitted, I'm printing out the bean property for this textarea and I'm finding that Struts has broken up the UNICODE character into 3 separate characters: •.

We have the Content-Type meta tag set to the UTF-8 charset on the JSP and we've set the @page directive for contentType also to "text/html; charset=UTF-8". We've found a workaround, but it's totally a hack as we basically remove all encodings and then reconstruct the string from a byte array.

Anyone have an idea as to what might be going on and why Struts appears to be mucking with the encoding? Thanks.

--adam

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to