I have a widget that people can put in their site.
The widget is generated via php script that echos the populated string using: document.write('$widget_output').
The hosting sites call to the widget using a javascript tag:
<script type="text/javascript" src="http://www.link.com/page.php?param=1"></script>
The problem is that my widget is utf-8 and sometimes it's different from the sites hosting it, causing the widget to display gibberish text.
Does anybody have a way of fixing it so that it works in any circumstance?
Thanks!