誰かがこれで助けてくれることを願っています
英語とドイツ語のテキストを含むデータベースがあり、Postgres データベースで php を使用しています。英語のテキストのクエリは正常に機能しますが、クエリ文字列にドイツ語の文字が含まれていると空の結果が得られます。
例えば:
select field from Table where field ilike '%software%'
期待通りの結果を返す
select field from Table where field ilike '%bersetzung%'
期待通りの結果を返す
select field from Table where field ilike '%Übersetzung%'
空のセットを返します
show client_encoding は UNICODE を返します。pgadmin で上記のクエリを実行しても、クエリ文字列にドイツ語の文字が含まれている場合は空のセットが返されます。
データベースのエンコーディングは UTF-8 です
前もって感謝します