HTML MySQL encoding character and simplepie

218 Views Asked by At

I have the following issue with character encoding witch I don't know how to solve it. I'm building a website where it is necessary to grab feeds from custom news sites and store it in my own database.

The thing is that for some feeds are stored fine with the german umlauts as they are (ä,ü,ß). But for other feeds the german umlauts are converted to "Java für Mac" or "Fehler in CoreText lässt OS-X- und iOS-Apps abstürzen".

The database setting is utf8_general_ci, also when i save some field directly in the database the german umlauts are saved ok.

For loading the feeds i use the simplepie 1.3 library and have set also the input-output character encoding to UTF-8.

1

There are 1 best solutions below

4
On

You have probably no charset selected in your html document.