摘要:
#vim /etc/mysql/my.cnf找到[mysqld]添加character-set-server = utf8重启mysql#restart mysqlmysql> show variables like 'character%' ;+--------------------------... 阅读全文
摘要:
/** * 采用字符流读取写入文本文件 */public class FileUtil { /** * 写文件 * @param fileName * @param content */ public static void writeFile(String fileName, String content){ FileWriter output = null; BufferedWriter writer = null; try{ output = new FileWriter(... 阅读全文