简体   繁体   English

在mySQL数据库中找到不可见的utf8字符

[英]locate invisible utf8 characters in mySQL database

I have a database in where I have found some field with NON UTF8 characters inside. 我有一个数据库,在其中找到了一些带有非UTF8字符的字段。 In fact, if i edit the field value with phpmyadmin, copy the value of the field, paste it on notepad++, and change the encoding, I see this character  while there is nothing if i change the charset to utf8 no BOM. 实际上,如果我使用phpmyadmin编辑字段值,复制该字段的值,将其粘贴到notepad ++上,然后更改编码,我会看到此字符而如果我将字符集更改为utf8 no BOM则没有任何意义。

I need to find a way to search and delete all those ANSI visibile characters in the mySQL tables, consider that those character are visible only if I paste the value in notepad++ 我需要找到一种方法来搜索和删除mySQL表中的所有ANSI可见字符,请考虑将这些字符粘贴到notepad ++中才可见

please if someone has an idea, anything is apreciated. 请,如果有人有一个主意,任何东西都很美。

this question is related to this problem: another question 这个问题与这个问题有关: 另一个问题

You can try this: 您可以尝试以下方法:

select * from tableName where fieldName regexp '[^ -~]'; 从tableName中选择*,其中fieldName regexp'[^-〜]';

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM