System.out.println("对应的中文: " + decodeUnicode(args[0]));
赋值args[0] = “\u7b80\u4ecb”
System.out.println("对应的中文: " + decodeUnicode(“ \\u7b80\\u4ecb”));
两者才会相同
具体情形见上篇blog
2023-08-17 22:32:52
System.out.println("对应的中文: " + decodeUnicode(args[0]));
赋值args[0] = “\u7b80\u4ecb”
System.out.println("对应的中文: " + decodeUnicode(“ \\u7b80\\u4ecb”));
两者才会相同
具体情形见上篇blog