0

I'm trying to store data in my database test like "< hi >" is stored as "u003c hi u004e" my database uses utf8mb4 charset. But also I experimented with utf8, utf 32, etc. It didn't work out.

1 Answers1

0

The problem is not with the Mysql Db. The problem is with gson/json library.

Use this code to solve it.

   Gson gsonBuilder =new GsonBuilder().disableHtmlEscaping().create();