Topic: alert string returns null (UTF8? problem)
i tried upgrading from v 0.5 to 0.6 and having some strange problems. I have a function that reads data from MySQL and creates a string containing html code which then gets assigned by innerHTML to the DOM.
In v0.5 everything works fine. In v0.6 there is nothing returned.
I tried to alert the html code which returned "null" even though the string definately contains html code.
After reading your sticky note about the UTF8 problem, i tried to utf8_encode the html string first before returning ist - like this:
$objResponse->assign( 'id', 'innerHTML', utf8_encode( $htmlString ) );
that Worked fine. But as a matter of fact my PHP application has so much code that it would not be a good idea to replace every part where i'm using objRespnse->assign with that utf8_encode.
Is there an easy way to deal with this issue - maybe some global configuration that everything it converted to utf8 automatically?