users@jersey.java.net

Multipart Form And Encoding

From: Jordi Domingo <noseya_at_hotmail.com>
Date: Mon, 2 Nov 2009 11:49:22 +0100

Hi,

I've got some problems with char encoding using multipart API. I've been able to solve this in my pc using:

String name = multiPart.getField("name").getValue();
name = new String(name.getBytes("ISO-8859-1"), "UTF-8");

But in production it is not working. Chars like àáèéìí ... are shown like ??

Any help is appreciated. Thanks,

Jordi
                                               
_________________________________________________________________
Convierte las fotos que más te gustan en tu nuevo fondo de escritorio para el ordenador. Es fácil y además gratis
http://wallpapers.msn.com/es-es