狮身人面像搜索:?符号而不是非拉丁字符
我有一个“?” (问号)而不是搜索结果中的非拉丁字符。我有 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用以下命令代替 sql_query_pre = SET CHARACTER SET utf8:
Instead of sql_query_pre = SET CHARACTER SET utf8 use: