1
I have a ArrayList
and when will I convert him to a Json
using the Gson
special characters do not accompany serialization.
Obs My bank and project is in encoding utf8
.
I am Serializing the ArrayList
thus:
Cliente cliente = new Cliente();
ClienteDAO dao = new ClienteDAO();
lista = dao.listaClientes(cliente,empresa,dataHoraExp,compartilhaBas);
Gson g = new Gson();
String json = g.toJson(lista);
In my range json
where it should present "bairro1":"NOSSA SRº DE FATIMA"
is presenting "bairro1":"NOSSA SR? DE FATIMA "
.
How do I convert without losing the special characters?
Which one do you use? vc is using Maven?
– brow-joe
I’m using the Netbeans.
– Camila