Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Jackson 库将我的 java 对象解析到 json 或从 json 解析。我有一个问题,用“〜”解析文本。喜欢:问题。
我收到了:
Quest\u00c3\u00a3o
在我使用之后
objectMapper.readValue(json, targetClass);
我的对象 Java 上有这个字符串: Questão 。
我如何将这个“Quest\u00c3\u00a3o”转换为这个“Questão”?
谢谢!
import java.net.URLDecoder; String decodeStr = URLDecoder.decode("Quest\u00c3\u00a3o", "utf-8");