.load() and character encoding problem
Hi,
I load a php file like this:
- .load('dialog_modules.php', { 'p_module_id': module_id }, function() { $('#dialog .ui-button').button(); } )
.dialog('open');
But in the dialog the characters get odd.
If I set in dialog_modules.php this header:
- <?php header('Content-Type: text/html; charset=windows-1252'); ?>
It works for the html text but then data from the database look odd which looked good without the php header so setting this header is not good at all.
I have set everything to utf-8. But it seems that the loaded data is not set to utf-8.
So has this something to do with the .load() as the html text looks odd? Thanks in advance for any hint.