Special chars in a floatbox?

Page: 1

Author Post
Member
Registered: Jan 2014
Posts: 8
Hi :)

When i retrive data from a MSSQL DB via a php script into my floatbox. all my Danish chars gets converted into '?'.. this only happens in my floatbox, not all my other pages.

Do anyone have a clue why?

Kind regards
« Last edit by Juel on Thu Jan 09, 2014 12:38 pm. »
Member
Registered: Jan 2014
Posts: 8
The php page the floatbox shows, look fine when runned outside floatbox :/
Administrator
Registered: Aug 2008
Posts: 3382
You need the correct character encoding, probably utf-8, on the main page that is showing the content. Nothing to do with Floatbox.
Member
Registered: Jan 2014
Posts: 8
Hi :)

The funny thing was that the main page looks good when running the same code.. But i have solved the problem by using utf8_encode() on the txt from the db :)

Thanks for your reply :)

Page: 1