当前位置:网站首页>编译文件时报错:错误: 编码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
边栏推荐
猜你喜欢

Section 26 detailed explanation and demonstration of IPSec virtual private network configuration experiment - simulation experiment based on packettracer8.0
![C programming learning notes [edited by Mr. Tan Haoqiang] (Chapter III sequence programming) 05 data input and output](/img/38/9c460fc58b62609dd02e7c61207ae6.jpg)
C programming learning notes [edited by Mr. Tan Haoqiang] (Chapter III sequence programming) 05 data input and output

Don't use the new Dede collection without the updated Dede plug-in

Vs 2019 configure tensorrt to generate engine

MongoDB简介

900W+ 数据,从 17s 到 300ms,如何操作

Captura下载安装及在Captura配置FFmpeg

用Three.js做一个简单的3D场景

Idea set method call ignore case

Application of derivative in daily question
随机推荐
BigVision代码
用Three.js做一个简单的3D场景
Positioning (relative positioning, absolute positioning, fixed positioning, Z-index) 2022-2-11
QQ小程序开发之 一些前期准备:预约开发账号、下载安装开发者工具、创建qq小程序
com.fasterxml.jackson.databind.exc.InvalidFormatException问题
MongoDB主配置文件
MySQL practice 45 lecture [transaction isolation]
Limit of one question per day
【AI实战】应用xgboost.XGBRegressor搭建空气质量预测模型(一)
com. fasterxml. jackson. databind. Exc.invalidformatexception problem
基于Qt的yolov5工程
softmax的近似之NCE详解
On the adjacency matrix and adjacency table of graph storage
Compare float with 0
递归使用和多维数组对象变一维数组对象
MongoDB复制集【主从复制】
900w+ data, from 17s to 300ms, how to operate
Applet get user avatar and nickname
navicat 导出数据库的表结构
The XML file generated by labelimg is converted to VOC format