summaryrefslogtreecommitdiff
path: root/src/test/java/TestUFT.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/TestUFT.java')
-rw-r--r--src/test/java/TestUFT.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/java/TestUFT.java b/src/test/java/TestUFT.java
new file mode 100644
index 0000000..b0cba09
--- /dev/null
+++ b/src/test/java/TestUFT.java
@@ -0,0 +1,10 @@
+import java.io.UnsupportedEncodingException;
+import java.nio.charset.StandardCharsets;
+
+public class TestUFT {
+ public static void main(String[] args) throws UnsupportedEncodingException {
+ String str = "�й�";
+ System.out.println(new String( str.getBytes("GBK") , StandardCharsets.UTF_8));
+ }
+
+}