当前位置:网站首页>编译文件时报错:错误: 编码GBK的不可映射字符
编译文件时报错:错误: 编码GBK的不可映射字符
2022-07-03 03:29:00 【南风~古草】
1、遇到的问题:窗口cmd编译文件报错:编码GBK的不可映射字符:
2、原因分析:
Windows下默认为GBK编码,javac编译utf-8编码的java文件时,会报错: 编码GBK的不可映射字符
3、解决方法:
在javac后面加上-encoding utf-8
即:
4、引申:
Linux下默认为UTF-8编码,javac编译gbk编码的java文件时,会报错: 编码UTF8的不可映射字符
在javac 后添上-encoding gbk
边栏推荐
- 解决高並發下System.currentTimeMillis卡頓
- [combinatorics] Application of exponential generating function (multiple set arrangement problem | different balls in different boxes | derivation of exponential generating function of odd / even sequ
- [MySQL] the difference between left join, right join and join
- shardingsphere动态数据源
- 小程序获取用户头像和昵称
- npm : 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
- node 开启服务器
- Advanced redis applications [password protection, data persistence, master-slave synchronization, sentinel mode, transactions] [not completed yet (semi-finished products)]
- The file marked by labelme is converted to yolov5 format
- Pytorch multi card distributed training distributeddataparallel usage
猜你喜欢
Bid farewell to artificial mental retardation: Mengzi open source project team received RMB 100 million financing to help NLP develop
VS 2019 配置tensorRT生成engine
Vs 2019 installation and configuration opencv
C programming learning notes [edited by Mr. Tan Haoqiang] (Chapter III sequence programming) 03 operators and expressions
别再用 System.currentTimeMillis() 统计耗时了,太 Low,StopWatch 好用到爆!
ffmpeg之 一张/多张图片合成视频
QQ小程序开发之 一些前期准备:预约开发账号、下载安装开发者工具、创建qq小程序
Limit of one question per day
Pytorch multi card distributed training distributeddataparallel usage
小程序获取用户头像和昵称
随机推荐
递归使用和多维数组对象变一维数组对象
FileZilla Client下载安装
@The difference between Autowired, @qualifier, @resource
Latest version of NPM: the "NPM" item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check
The idea setting code is in UTF-8 idea Properties configuration file Chinese garbled
静态网页 和 动态网页的区别 & WEB1.0和WEB2.0的区别 & GET 和 POST 的区别
Mongodb installation & Deployment
Pat class B "1104 forever" DFS optimization idea
[embedded module] OLED display module
Vs 2019 installation and configuration opencv
[combinatorics] brief introduction to generating function (definition of generating function | Newton binomial coefficient | commonly used generating function | correlation with constant | correlation
docker安装及启动mysql服务
Hutool动态添加定时任务
The series of hyperbolic function in daily problem
[leetcode question brushing day 34] 540 Unique element in array, 384 Disrupt array, 202 Happy number, 149 Maximum number of points on a line
Advanced redis applications [password protection, data persistence, master-slave synchronization, sentinel mode, transactions] [not completed yet (semi-finished products)]
Use of El tree search method
Yolov5 project based on QT
Limit of one question per day
Section 26 detailed explanation and demonstration of IPSec virtual private network configuration experiment - simulation experiment based on packettracer8.0