Home  >  Article  >  Database  >  Solve the problem of garbled characters in data stored in redis

Solve the problem of garbled characters in data stored in redis

王林
王林forward
2021-03-02 09:20:334852browse

Solve the problem of garbled characters in data stored in redis

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

Solve the problem of garbled characters in data stored in redis

##Step 2: Start redis client with CMD

1. Open the cmd window and enter chcp 65001 to set the cmd encoding format

Solve the problem of garbled characters in data stored in redis

(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

Solve the problem of garbled characters in data stored in redis

Related recommendations:

redis database tutorial

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!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete