Redis Command Line To View Chinese Without Scrambling
Redis Command Line To View Chinese Without Scrambling
(https://developpaper.com) Navigator
When Redis uses command-line operations, if the content is viewed in Chinese, it displays a h
exadecimal string ” xe4 xb8 xad xe5 x9b xbd”
If you want to see Chinese without scrambling, there are two solutions:
I. Use echo
$ redis-cli --raw
127.0.0.1:6379> get k1
China
Here are some examples of Redis using hexadecimal string processing, as follows:
Redis’s Chinese content is stored in hexadecimal format in the process of using Redis, so wh
en using redis-cli client connection, if the Chinese part of the content is displayed in hexadeci
mal format, it is not convenient to query the data content in redis. In fact, under Unix system, y
ou can put it in the form of hexadecimal. The hexadecimal content is retrieved by using the “-
e” parameter in echo to convert the queried hexadecimal content, as follows:
https://developpaper.com/redis-command-line-to-view-chinese-without-scrambling-hexadecimal-string-processing/ 1/3
2/5/2021 Redis command line to view Chinese without scrambling (hexadecimal string processing) | Develop Paper
In addition, when using the redis-cli client, the’-raw’parameter of the redis-cli client itself can b
e used to output the original content when connecting redis:
summary
Above is the whole content of this article. I hope that the content of this article has a certain re
ference value for everyone’s study or work. If you have any questions, you can leave a messa
ge and exchange it. Thank you for your support to developpaer.
Recommended Today
Win10 configuration redis service implementation proc… Handling method of redis connection timeout exceptio…
Installation and test of redis on MacOS (https://develo… Use redis to get data and transfer it to JSON to solve t…
Redis solves the key garbled problem and cleans up t… Record of scan command in redis (https://developpap…
The realization method of converting audio files into bi… Detailed analysis on the source code of redis network …
https://developpaper.com/redis-command-line-to-view-chinese-without-scrambling-hexadecimal-string-processing/ 2/3
2/5/2021 Redis command line to view Chinese without scrambling (hexadecimal string processing) | Develop Paper
Pre: Why is it so difficult for Python to find a job even though he is very hot? (https://developpaper.com/why-
python (https://developpaper.com/question/tag/python/)
linux (https://developpaper.com/question/tag/linux/)
windows (https://developpaper.com/question/tag/windows/)
android (https://developpaper.com/question/tag/android/)
ios (https://developpaper.com/question/tag/ios/)
mysql (https://developpaper.com/question/tag/mysql/)
html (https://developpaper.com/question/tag/html/)
.net (https://developpaper.com/question/tag/net/)
github (https://developpaper.com/question/tag/github/)
node.js (https://developpaper.com/question/tag/node-js/)
https://developpaper.com/redis-command-line-to-view-chinese-without-scrambling-hexadecimal-string-processing/ 3/3