所以vs开发的代码用其它开发工具打开会出现乱码 调整vs默认编码: 拓展——>联机——>force UTF-8(No BOM)
vscode内置终端..vscode内置终端默认字符集编码是utf8? 为什么把vscode默认字符集设置成gbk之后,c/cpp源代码里有中文,在内置终端会出现乱码?
VS2019 修改默认字符集为 UTF8 with BOM Format on Save 下载
return encoding, confidence def convert_encoding(file_path, from_encoding='utf-8', to_encoding='gb2312'): """ 将文件的编码从一种转换为另一种。 :param file_path: 文件的路径 :param from_encoding: 原始编码 :param to_encoding: 目标编码 """ try: #判断文件内容的编码类型,如果与to_encoding...