Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ヘッダーに表示される別の Web サイトのコンテンツを解析していますが、これは iso-8859-1 です。ただし、コンテンツを取り込む cms システムは UTF8 です。
ほとんどの文字を取得しますが、「奇妙な文字が表示されます。このコンテンツを適切に変換する方法がわかりません。
誰でも助けてくれますか
を使用utf8_encode($content)しutf8_decode($content)て、コードをデータベース内外に保存および復元します。
utf8_encode($content)
utf8_decode($content)