Problem description:
When I used the redis database to save data, I found that all the stored data became garbled.
Solution:
Step 1: Configure RedisTemplate
##Step 2: Start redis client with CMD1. Open the cmd window and enter chcp 65001 to set the cmd encoding format (Learning video sharing:redis video tutorial, mysql Video tutorial)
2. Enter the redis directory and enter redis-cli.exe --raw to start the redis client Related recommendations:The above is the detailed content of Solve the problem of garbled characters in data stored in redis. For more information, please follow other related articles on the PHP Chinese website!