当前位置:网站首页>【字符集九】gbk拷贝到Unicode会乱码?
【字符集九】gbk拷贝到Unicode会乱码?
2022-06-12 08:42:00 【junxuezheng】
一、问题描述
- 产品遇到了一个bug,一个同事说,可能由于他的字符是其他地方拷贝的,并不是所需格式的,所以产生了乱码。
二、问题分析
- 简单说,就是你把gbk拷贝到了utf8格式,所以乱码了。
- 但事实真的是这样的吗?
三、实验
1、新建一个gbk格式的文件
2、新建一个utf8格式的文件
3、把gbk格式的文字拷贝到utf8格式的文本中
4、把utf8格式的文件保存,再打开。发现没有乱码。
(如上图)
备注:当然,如果我们把gbk另存为utf8,打开gbk,是会乱码的。
四、结果分析
- 之前的说法,我把gbk格式拷贝到了utf8格式的文档中,(或者是拷贝到某个输入中),导致乱码的说法是不存在的。
- gbk文字拷贝到utf8格式的文件中,Windows系统应该做了转码的操作。
边栏推荐
- IDEA新版UI申请方法+无测试资格使用方法及相关介绍
- MPLS的原理与配置
- Only use MES as a tool? Looks like you missed the most important thing
- 处理异常数据
- 【进阶指针一】字符数组&数组指针&指针数组
- Specify 404 and 500 error reporting pages.
- Record the first step pit of date type
- Encapsulate the amount input box component.
- Ankerui fire emergency lighting and evacuation indication system
- Build personal blog and web.
猜你喜欢

Background fixing effect

Hypergeometric cumulative distribution test overlap

(p19-p20) delegate constructor (proxy constructor) and inheritance constructor (using)

Engineers learn music theory (II) scale and tendency
![[data storage] storage of floating point data in memory](/img/c4/a67735858ce5d58bd504b087a2d123.png)
[data storage] storage of floating point data in memory

ctfshow web 1-2

Centos8 installing MySQL 8.0 (upper)

Hands on learning and deep learning -- simple implementation of linear regression

JVM学习笔记:三 本地方法接口、执行引擎

FDA审查人员称Moderna COVID疫苗对5岁以下儿童安全有效
随机推荐
Hands on learning and deep learning -- simple implementation of linear regression
In the era of intelligent manufacturing, how do enterprises carry out digital transformation
Arrays in JS
网站Colab与Kaggle
Inheritance of row height
Install iptables services and open ports
【进阶指针一】字符数组&数组指针&指针数组
Seurat package addmodulescore is used for bulk RNA SEQ data
2022.6.9-----leetcode. four hundred and ninety-seven
《MATLAB 神经网络43个案例分析》:第8章 GRNN网络的预测----基于广义回归神经网络的货运量预测
Scope of bean
Audio and video engineer (Preliminary) (I) basic concepts of audio and video
The era of post MES system has come gradually
Wechat applet image saving function
Close asymmetric key
Is it really expensive for enterprises to launch MES software?
Never use MES as a tool, or you will miss the most important thing
Centos8 installing MySQL 8.0 (upper)
ctfshow web3
Query in MySQL