thebuzz
-
Posts
1 -
Joined
-
Last visited
Never
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Convert UTF8 to danish letters... Not so simple as I thought
in PHP Coding Help
Posted
I use utf8_decode to convert utf8 string feed to Danish iso-8859-1, which should be rather simple...
Feed string is forexample $news->body
ØK holder kursen
Which should turn into
ØK holder kursen
doing
utf8_decode(utf8_decode($news->body)) returns bad chars tho it converts lowercase æøå to the right letters, however capital letters ÆØÅ isnt converted.
Anyone has some suggestions?
I also do not understand why it has to be utf8_decode decoded twice...