Christopher-

So, we have a form in a JSP, and generally, the OS allows the user to copy/paste a bullet list from MS Word, OOWriter, et. al. into a text area in the form. Regardless of whether the browser is in UTF-8 mode or ISO-8859-1 mode, the bullets show up as bullets. We submit the form, the page reloads, and the bullets turn in to the characters I mentioned. The printing is done through a logger, I'm simply calling <logger_instance>.log(<level>, "description: " <form>.getDescription()); to log it to the logger. The logger is being tailed in an rxvt-unicode terminal which can display the bullet character when it's correctly encoded.

The form is POSTed to the server.

I just ran it through Wireshark and followed the TCP stream verifying that it's being encoded correctly into 3 bytes - it is (E2 80 A2). I'm going to follow up with Paul's post and try it on 1.3.8 and see if I can reproduce. Basically, the behavior we're seeing is that the 3 bytes are being treated as separate characters and not as one UNICODE character.

-adam

Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Adam,

Adam Gordon wrote:
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:  •.

Two questions:

1. Where are you printing this single Unicode character that you see 3
separate characters?

2. Are you using GET or POST?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGXXN/9CaO5/Lv0PARAmjsAJ9CsNN2lNTS7VuZlJwiGCzObwYqiQCfTCNJ
pRYIcqnX0f/MlBtTaG6GqCM=
=hRWl
-----END PGP SIGNATURE-----

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


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

Reply via email to