users@jersey.java.net

Jersey client not sending UTF-8 characters

From: Guillaume Bilodeau <guillaume.bilodeau_at_gmail.com>
Date: Mon, 18 Jan 2010 14:29:33 -0500

Hi guys,

We're using Jersey 1.0.3 to implement a REST client. This client needs to
post an XML envelope containing UTF-8 characters. When debugging within
Eclipse, we can see that the entity that is being sent is correct (all
accentuated characters are displayed properly). However, intercepting this
request using TCPMon shows garbled accentuated characters. We've dug into
the Jersey source code and it seems to be using an OutputStream that uses
UTF-8, so we're a bit stumped here.

Any ideas why we're observing this behaviour?

Thanks,
GB