Navicat: Solve the problem of Chinese garbled characters in imported csv files

1 Problem description

When importing, the encoding format is UTF-8 by default

insert image description here

Later, it was found that the Chinese in the source field displayed garbled characters

insert image description here

2 solutions

Open the csv file in Notepad txt format and check whether the encoding format in the lower right corner is UTF-8

Generally, the csv saved through xls, the encoding format is ANSI, needs to be converted to UTF-8
insert image description here

Conversion method: Use the save function of Notepad, select the encoding format as UTF-8, and save it.

insert image description hereThe modified encoding format has become UTF-8

insert image description here

Import the csv file from Navicat again to display Chinese normally.

insert image description here

Guess you like

Origin blog.csdn.net/weixin_46098577/article/details/132618456