Java - Problemas al leer texto iso-8859-1

 
Vista:
sin imagen de perfil

Problemas al leer texto iso-8859-1

Publicado por Víctor (1 intervención) el 30/01/2016 02:50:25
Hola,
En unas conexiones por socket me devuelven este texto que tiene tildes, ñ... pero tal y como me sale dichos carácteres no salen bien.
He probado con
1
BufferedReader br = new BufferedReader(new InputStreamReader(socket.getInputStream(),"iso-8859-1"));
y con
1
String decoded = new String(line.getBytes("iso-8859-1"));

Pero no consigo mostrar el texto correctamente, ¿Que podría hacer?
Tengo que terminarlo este domingo :(
Saludos.
1
2
3
4
5
6
7
8
9
------=_NextPart_000_006F_01D15ACB.95A9D010
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
 
texto con tildes
segunda l=EDnea
tercera l=EDnea
------=_NextPart_000_006F_01D15ACB.95A9D010
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder