What is the code rule of book two-dimensional code

2023-02-28 | 928 view
The code rules of two-dimensional code is to use a black dot to represent 1, with a blank to represent 0, the formation of a two-dimensional graph, represents a number of 1,0 arrangement, that is, the formation of data.

The code rules of two-dimensional code is to use a black dot to represent 1, with a blank to represent 0, the formation of a two-dimensional graph, represents a number of 1,0 arrangement, that is, the formation of data.

Basic rules for QR code generation (QR code only)

1. The text representation of the content to be generated is often said to be the encoding method, such as the standard ASCII characters (numbers, letters, common punctuation marks), you can leave it alone, anyway, it is compatible. If there are Chinese characters, it is necessary to pay attention to GB2312 encoding or UTF8 encoding, or UIncode encoding, which should be consistent with the parsing program.

2. The standard of two-dimensional code to be generated, such as generating in line with international standards or generating in line with Chinese national standards. The international standard is not efficient for Chinese characters, while the Chinese standard is efficient for Chinese characters. If it is a pure English character, both criteria are acceptable.

3. All in all, these two points need to be considered. The parser needs to correspond to the generation rules. General analysis program for the second point can be automatically identified, but for the first point analysis program is used to estimate the method, that is to say after the analysis of the results of the two-dimensional code may be estimated to use what coding method, sometimes inaccurate.

4, QR code for different data using different compression methods, so the same encoding information, using different layout effect may not be the same. In summary, to efficiently compile smaller QR codes:

Try to put the pure numbers together

Keep pure uppercase characters and numbers together as much as possible

Case and case together

Using Chinese national standards, Chinese characters as far as possible into a piece

If you have Chinese characters, try not to use Unicode and UTF-8 encoding, but GBK encoding