- 问题描述:每次从同学那里拷贝过来的工程采用GBK编码,若直接用ide打开将会产生乱码
- 业务需求描述:输入文件夹路径,将文件夹下所有.java文件的编码格式由GBK转换为UTF-8
- 代码实现:用递归的方式读取每个文件夹,采用Java I/O流简单实现。
- 有待改善:不能撤回操作且必须已知原文件编码为GBK,否则会产生乱码且文件不可恢复……
-
Notifications
You must be signed in to change notification settings - Fork 0
zlsq/GBK2UTF8
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published