当前位置:网站首页>What is the reason why the list of channels on the left side of easycvr video Plaza displays garbled codes?
What is the reason why the list of channels on the left side of easycvr video Plaza displays garbled codes?
2022-06-24 05:44:00 【Tsingsee green rhino video】
TSINGSEE Green rhino video cloud edge architecture products are connected to multi-level channels , A column menu will be displayed in the sidebar of the video square , The purpose is to make the distinction between channels clearer . Recently, we are testing EasyCVR Project time , The video square list is found to be garbled .
Because we first encountered such a problem , Not much experience , Therefore, only the binary information of garbled code can be used for troubleshooting . First, output the binary information to the file , Analyze :
Sort out the binary information so that the code can be processed in batches , The following data are obtained :
Use code to read files in batches , has “\r\n” and “,” style , Converting a string into a number , And stored in cache .
At this point we have all the binary data , You can see that there are some garbled codes, because there are GBK、 There are plenty of them UTF8, If it is UTF8 There is no problem with direct feedback displayed on the page , however GBK There will be problems . This is because UTF8 It is three bytes and one Chinese character , and GBK Is a function of two bytes , This is the biggest difference .
There's another reason , namely go Currently only supported UTF8, So deal with GBK Need to install go Third party library “simplifiedchinese”, In the use of go Own method “utf8.Valid” To judge whether it is UTF8 still GBK.UTF8 It is three bytes and one Chinese character , Therefore, it is necessary to judge buffer Otherwise it would be GBK.
The above analysis is completed , Based on the analysis of buffer There are many more in the back 0x00.
hold 0x00 The disturbed data is cleared , Prevent misjudgment . Use code interception .
complete go Transcoding format :
At this point, you can solve the problem of garbled code in the sidebar channel .EasyCVR The video security cloud service supports traditional webcams 、NVR、 Encoder 、SDK Other equipment , The compatibility of hardware devices is improved to the greatest extent , And it can be directly connected to Alibaba cloud 、 Tencent cloud 、 Hua Wei Yun 、 Qiniuyun and so on , Support S3 and Swift Interface object storage service , Simple configuration , More efficient deployment . If there is a need , Welcome to .
边栏推荐
- What are the benefits of deploying a private cloud platform for the enterprise?
- How to build a website after successfully registering a domain name? Can I build a website without registering a domain name?
- How to file a personal domain name? What are the benefits of domain name filing?
- Explain thoroughly and learn rotten binary tree (4): storage structure of binary tree - build heap - Search - sort
- Answer questions! This article explains the automated testing framework in software testing from beginning to end
- What is domain name filing? What is the role of domain name filing?
- How to register an overseas domain name what should be paid attention to when registering a domain name
- How to buy a network domain name? Is the domain expensive
- Pylin tool usage
- When a beef cow has an "electronic ID card"
猜你喜欢
Easy to understand JDBC tutorial - absolutely suitable for zero Foundation
What cloud native knowledge should programmers master?
Learning routes and materials for cloud native O & M engineers

How should we learn cloud native in 2022?

Answer questions! This article explains the automated testing framework in software testing from beginning to end
随机推荐
What is domain name resolution? How much does domain name registration cost
What is a first level domain name? What are the steps to purchase a primary domain name?
How to get a secondary domain name? What does a secondary domain name mean?
What kind of intelligent connection design do we need in an interconnected society?
What is domain name filing? What is the role of domain name filing?
What is the meaning of domain name being walled and what is the solution
Why should the domain name be filed? What materials are needed for the filing of enterprise domain names?
How do websites apply for domain names? How to select a website domain name?
What should I pay attention to in server hosting and migration?
What is the relationship between IP address and domain name? How to select a domain name?
How do individuals register domain names? What are the precautions for individual domain name registration?
What is a domain name server? What are the types of domain name servers?
The website cannot be opened after windows installs the dongle
Tencent Anxin platform was officially released, and the "Anxin agricultural product plan" was launched at the same time, supporting the growth of 100 landmark agricultural product brands in three year
How to build a website with a domain name? Is the website domain name free to use?
How to build a website after registering a domain name? Can individuals register domain names to build websites?
The instrument industry builds the supplier SRM mode to manage the development of manufacturers + users
Intelligent monitoring era - the way of monitoring construction
Supply chain innovation of industrial Internet cloud computing
Oceanus practice consumption CMQ subject model data source