当前位置:网站首页>编译文件时报错:错误: 编码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
边栏推荐
- VS code配置虚拟环境
- C# WebRequest POST模式 ,基于“Basic Auth”口令认证模式,使用multipart/form-data方式上传文件及提交其他数据
- Idea set method call ignore case
- com. fasterxml. jackson. databind. Exc.invalidformatexception problem
- 文件重命名
- npm : 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
- 模型转换onnx2engine
- Unity3d RPG implementation (medium)
- Convert binary stream to byte array
- UMI route interception (simple and rough)
猜你喜欢

简易版 微信小程序开发之for指令、上传图片及展示效果优化

Tidal characteristics of the Bohai Sea and the Yellow Sea

Pytorch轻量级可视化工具wandb(local)

Vs 2019 configuration du moteur de génération de tensorrt

LVGL使用心得

递归:深度优先搜索
![Learning notes of C programming [compiled by Mr. Tan Haoqiang] (Chapter III sequence programming) 04 C sentence](/img/60/bae0e8d92a53bcd2b2de3fb22b3b99.jpg)
Learning notes of C programming [compiled by Mr. Tan Haoqiang] (Chapter III sequence programming) 04 C sentence

MySQL MAC download and installation tutorial

UMI route interception (simple and rough)

numpy之 警告VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences
随机推荐
On the adjacency matrix and adjacency table of graph storage
Pytorch配置
The XML file generated by labelimg is converted to VOC format
小程序获取用户头像和昵称
Docker install and start MySQL service
Elsevier latex submitted the article pdftex def Error: File `thumbnails/cas-email. jpeg‘ not found: using draf
Some preliminary preparations for QQ applet development: make an appointment for a development account, download and install developer tools, and create QQ applet
递归:深度优先搜索
[mathematical logic] normal form (conjunctive normal form | disjunctive normal form | major item | minor item | maximal item | minor item | principal conjunctive normal form | principal disjunctive no
The series of hyperbolic function in daily problem
为什么线程崩溃不会导致 JVM 崩溃
Spark on yarn resource optimization ideas notes
VS 2019安装及配置opencv
Nce detail of softmax approximation
[set theory] partial order relation (partial order relation definition | partial order set definition | greater than or equal to relation | less than or equal to relation | integer division relation |
@Accessors annotation function specifies that the prefix follows the hump naming
403 error displayed when vs cloning
Yolov5 project based on QT
QT based tensorrt accelerated yolov5
简易版 微信小程序开发之页面跳转、数据绑定、获取用户信息、获取用户位置信息