D
D
Damir Shaniyazov2021-07-18 13:09:22
Laravel
Damir Shaniyazov, 2021-07-18 13:09:22

How to search strings for Russian words?

if ($request->get('search') != '') {
            foreach ($columns as $column) {
                $result->orWhere($column['name'], 'LIKE', '%' . $request->get('search') . '%');
            }
        }


I do search in all columns. When I enter something Russian on the page, it does not find anything. Looking for everything in English.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Plisko, 2021-07-18
@AmdY

Try querying the database directly. Check encodings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question