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.
我需要从我的数据库中检索字符串值。但是它们以 "\u00D0\u009A\u00D0\u00B5\u00D0\u00BD\u00D0\u00B9" 的形式出现。当输入的字符串不是英文时会发生这种情况。如何将它们转换为原始字符串。
谢谢
如果这是在 Java 编码中,请尝试如下。
// read Db value to stringValueFromDB string , then convert as below String sNewString = stringValueFromDB.getBytes("UTF-8");