Charset 问题
我看了Charset 类,其中只有以下编码:US-ASCII ISO-8859-1 UTF-8 UTF-16BE UTF-16LE UTF-16。我想问:
1.为什么没有“GBK”,“GB2312”这些编码呢?
2.BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), "UTF-8"));
如果我把UTF-8改为utf8,utf-8结果都一样,是不是这三种都能正确识别呢??