当前位置:网站首页>[character set 9] will GBK be garbled when copied to unicode?
[character set 9] will GBK be garbled when copied to unicode?
2022-06-12 08:52:00 【junxuezheng】
Here's the catalog title
One 、 Problem description
- The product encountered a bug, A colleague said , Probably because his characters were copied from other places , Not in the required format , So there's a mess .
Two 、 Problem analysis
- In short , It's you gbk Copy to utf8 Format , So it's garbled .
- But is that really the case ?
3、 ... and 、 experiment
1、 Create a new one gbk File format 
2、 Create a new one utf8 File format 
3、 hold gbk Copy formatted text to utf8 In formatted text 
4、 hold utf8 Format file save , And on again . No garbled code found .
( Pictured above )
remarks : Of course , If we put gbk Save as utf8, open gbk, It's messy .
Four 、 Result analysis
- Previous statement , I put gbk The format is copied to utf8 In a document in format ,( Or copy it to some input ), There is no such thing as garbled code .
- gbk Copy text to utf8 Format file ,Windows The system should have transcoded .
边栏推荐
- Construction of memcached cache service under Linux:
- 分库分表会带来读扩散问题?怎么解决?
- Detailed explanation of private, public and interface attributes in cmake
- xshell启动遇到“由于找不到mfc110.dll,无法继续执行代码的解决方法”
- ISCSI详解(五)——ISCSI客户端配置实战
- 《MATLAB 神经网络43个案例分析》:第7章 RBF网络的回归--非线性函数回归的实现
- js实现页面加载后再刷新一次
- Difference between binary GB and gib
- Principle and configuration of MPLS
- JVM learning notes: garbage collection mechanism
猜你喜欢

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

Engineers learn music theory (II) scale and tendency

Construction of memcached cache service under Linux:

(p17-p18) define the basic type and function pointer alias by using, and define the alias for the template by using and typedef

Adjust SVG width and height

调整svg宽高

【 pointeur avancé Ⅲ】 mise en œuvre de la fonction de tri rapide qsort& fonction de rappel en langage C

ip、DNS、域名、URL、hosts

Redis installation test

Summary of common character sets
随机推荐
Error: what if the folder cannot be deleted when it is opened in another program
Shell basic syntax -- arithmetic operation
Summary of common character sets
This article is required for the popularization of super complete MES system knowledge
Engineers learn music theory (III) interval mode and chord
[dynamic memory management] malloc & calloc and realloc and written test questions and flexible array
【字符集七】汉字的宽字符码和多字节码分别是多少
Notes used by mqtt (combined with source code)
[untitled] task3 multiple recall
Background fixing effect
Background color translucent
第八章-数据处理的两个基本问题
报错:清除网站内搜索框中的历史记录?
Make a simple page with the websql database of HTML5:
The newline character with in the string is converted to an array
Centos8 installing MySQL 8.0 (upper)
[open source project] easycmd command graphical software
2022.6.11-----leetcode. nine hundred and twenty-six
Is it really expensive for enterprises to launch MES software?
Engineers learn music theory (I) try to understand music