-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Adam,

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

That's because HTTP isn't involved at this point... it's only UI widgets
which should be expected to do the right thing. When the browser
generates the request, /that's/ when you need to examine the data.

> 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.

Okay, good. Sometimes people try to look at text files without using the
proper encoding.

> The form is POSTed to the server.

Good. That rules-out incorrect URL encoding.

> 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).

Is this the UTF-8 code that /should/ represent those bullet characters?

> 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.

Can you confirm that the Content-Type of the form is being submitted
with the request properly (as an HTTP header) and that the Request
object on the server-side correctly reads the Content-Type header?

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

iD8DBQFGXZPR9CaO5/Lv0PARAlvvAJ4iHRcg4kJC6YWKdyz2LiIlorjcTwCguMx/
pUbXMsYozx1hour7n3fudOs=
=Qb9t
-----END PGP SIGNATURE-----

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

Reply via email to