当前位置:网站首页>编译文件时报错:错误: 编码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
边栏推荐
- UMI route interception (simple and rough)
- QT based tensorrt accelerated yolov5
- Vs 2019 configuration tensorrt
- FileZilla Client下載安裝
- VS 2019配置tensorRT
- Unity3d RPG implementation (medium)
- Mysql Mac版下载安装教程
- redis高级应用【密码防护、数据持久化、主从同步、哨兵模式、事务】【暂未完成(半成品)】
- 递归:深度优先搜索
- Gavin teacher's perception of transformer live class - rasa project's actual banking financial BOT Intelligent Business Dialogue robot architecture, process and phenomenon decryption through rasa inte
猜你喜欢

Summary of electromagnetic spectrum

docker安装及启动mysql服务
![[MySQL] the difference between left join, right join and join](/img/d4/8684cd59cd1bd77e70bd4d7c7074c3.jpg)
[MySQL] the difference between left join, right join and join

Table structure of Navicat export database

Idea format code idea set shortcut key format code

MongoDB安装 & 部署

LVGL使用心得

Stop using system Currenttimemillis() takes too long to count. It's too low. Stopwatch is easy to use!
![Mongodb replication set [master-slave replication]](/img/2c/8030548455f45fa252062dd90e7b8b.png)
Mongodb replication set [master-slave replication]

Summary of matrix knowledge points in Chapter 2 of Linear Algebra (Jeff's self perception)
随机推荐
Applet (continuous update)
Solve high and send system Currenttimemillis Caton
Open Visual Studio 2010 hangs when opening a SQL file sql file
FileZilla client download and installation
Téléchargement et installation du client Filezilla
Tidal characteristics of the Bohai Sea and the Yellow Sea
Converts a timestamp to a time in the specified format
FileZilla Client下载安装
docker安装及启动mysql服务
MongoDB复制集【主从复制】
[combinatorics] basic counting principle (addition principle | multiplication principle)
用Three.js做一个简单的3D场景
Download and install node, NPM and yarn
Application of derivative in daily question
将时间戳转为指定格式的时间
Introduction à mongodb
Idea set method call ignore case
Hi3536C V100R001C02SPC040 交叉编译器安装
Spark on yarn resource optimization ideas notes
PHP generates PDF tcpdf