A
A
Anatoly Gusev2011-10-27 18:00:56
Sphinx
Anatoly Gusev, 2011-10-27 18:00:56

Wrong encoding between ipb3 and sphinx

Good day to all.

I recently set up sphinx on a VPS for a forum, after some problems sphinx successfully earned. However, after linking it with ipb, one problem emerged. When searching, only queries in Latin are correctly displayed. The reason I installed is ipb sends request in cp1251 and sphinx receives in utf-8. However, I did not find a way to solve this problem. Who faced, tell me how to be?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
SonicGD, 2011-10-27
@SonicGD

In the config that generates IPB, you need to add the line before each sql_query_pre

P
Puma Thailand, 2011-10-28
@opium

In sphinx, you need to set encodings in the config
in the source, depending on the encoding
sql_query_pre = SET NAMES utf8
or
sql_query_pre = SET NAMES cp1251
in the index, depending on the encoding
charset_type = utf-8
or
charset_type = sbcs
And the sphinx with such parameters can search for sites with utf8 or cp1251 encodings

A
Anatoly Gusev, 2011-10-28
@MximuS

Maybe I'm doing something wrong, but the last tips did not help me. Here is the config zalil.ru/31952225 Maybe I'm not specifying correctly. If anyone can, throw off your worker.

A
Anatoly Gusev, 2011-11-01
@MximuS

Hello again everyone.
I partly coped with that problem, but something remained: the index and the launch of the daemon go without errors, however, when I want to search for something on the forum with a request in Cyrillic, it tells me that there is nothing, the Latin search works everywhere, plus the Cyrillic search does not work only by post. Everything works in blogs, galleries and calendar. With what it can be connected.
My config: zalil.ru/31974004

I
IvikGH, 2015-09-14
@IvikGH

motomac
the problem is relevant for me, can I get a hint?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question