Which works fine(the makewindows function has been changed to show it is a php variable), however the html contains unicode characters, and will only be assigned characters leading up to the first unicode character. If I make a small test file and echo out article_desc directly, all the html is output, although quetsions marks are displayed instead of the correct symbols. However json_encode seems to cut short the html, resulting in errors.
edit: here is a dump straight from the mysql database of the html I am trying to display:
it says utf-8 in the source. the actual page code generated from echoing out article_desc is here:
it is definitely the same record, so I am unsure why it seems to very different.
edit: this was fixed by calling: mysql_query('SET NAMES utf8');
posted date: 2008-12-08 05:54:00