As shown in the figure above, run the keys * command, the key value contains Chinese, and then it cannot be displayed directly in Chinese, as shown in the figure above,
In the end, the Internet is coded with "ISO-8859-1", but no relevant official information can be found.
>>> "\xe6\xb2\xaaFN123".encode("iso-8859-1").decode('utf8') 'Shanghai FN123' Python encoding transformation, as shown in the figure below:
There is also a way to display Chinese directly in the redis client, as follows:
1. Open CMD.exe command line window
2. Change the code page through the chcp command, and the code page of UTF-8 is 65001
After doing this, the code page is turned into UTF-8. However, UTF-8 characters still do not display correctly in the window.
3. Modify window properties and change fonts
Right-click on the command line title bar, select Properties - > Fonts, change the font to the True Type font "Lucida Console", and click OK to apply the properties to the current window. As shown in the following figure:
Finally, add the --raw parameter when the client connects! As shown below:
However, with this method, I can't enter Chinese in the cmd command, so I can't execute the get command!
|