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

Solve the problem of garbled characters in data stored in redis

王林
Release: 2021-03-02 09:20:33
forward
4932 people have browsed it

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!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template