狮身人面像搜索:?符号而不是非拉丁字符

发布于 2024-12-27 05:34:30 字数 694 浏览 2 评论 0原文

我有一个“?” (问号)而不是搜索结果中的非拉丁字符。我有 sphinx 2.0.3 和最新的 Debian。不是第一次使用狮身人面像,但这个问题是第一次。完全以 UTF 编码和数据库连接:

character set client utf8
character set connection utf8
character set database utf8
character set results utf8
character set server utf8
character set system utf8
collation connection utf8_general_ci
collation database utf8_general_ci
collation server utf8_general_ci

在 sphinx 配置中:

sql_query_pre = SET NAMES utf8
sql_query_pre = SET CHARACTER SET utf8

在 sphinx 配置的索引部分中:

charset_type = utf-8
charset_table = 0..9, A..Z->a..z, _, a..z, U+410..U+42F->U+430..U+44F, U+430..U+44F

我做错了什么?

I have an "?" (question sign) instead of non-latin characters in search results. I have sphinx 2.0.3 and latest Debian. Not the first time working with the Sphinx, but this problem is the first time. Encoding and database connection fully in UTF:

character set client utf8
character set connection utf8
character set database utf8
character set results utf8
character set server utf8
character set system utf8
collation connection utf8_general_ci
collation database utf8_general_ci
collation server utf8_general_ci

In sphinx config:

sql_query_pre = SET NAMES utf8
sql_query_pre = SET CHARACTER SET utf8

In index section of sphinx config:

charset_type = utf-8
charset_table = 0..9, A..Z->a..z, _, a..z, U+410..U+42F->U+430..U+44F, U+430..U+44F

What i'm doing wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

弱骨蛰伏 2025-01-03 05:34:30

使用以下命令代替 sql_query_pre = SET CHARACTER SET utf8:

sql_query_pre = SET CHARACTER_SET_RESULTS=utf8

Instead of sql_query_pre = SET CHARACTER SET utf8 use:

sql_query_pre = SET CHARACTER_SET_RESULTS=utf8

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文