简体   繁体   中英

Sphinx/MySQL UTF8 & ™ symbol

We use Sphinx for a site search, but I'm very new to it.

It doesn't like the ™ symbol (™) - in the results I just get the question-mark-in-a-diamond symbol.

I have set the following, but no difference.

    sql_query_pre   = SET NAMES utf8
    sql_query_pre   = SET CHARACTER_SET_RESULTS=utf8

Any ideas?

I'm not familiar with Sphinx But try use utf8mb4_unicode_ci for the table encoding..

INSERT INTO testT (`fieldA`) VALUES ("™");
SELECT * FROM testT;

Seems to show a fine results

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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