Peter Upfold DevDocs

Developer documentation for Peter Upfold’s projects

User Tools

Site Tools


Documentation Archived

This documentation is archived and is no longer actively maintained.

wpget:utf-8_support

WPGet — UTF-8 Support

If your MySQL database for WordPress is encoded with UTF-8, and you would like WPGet’s output to also utilise this character set, you can add the following line to the WPGet script:

mysql_query('SET NAMES utf8');

This must be placed right after the line:

mysql_select_db($this->mysqldb) or die ($this->friendlyError(mysql_error(), "{Select DB}"));

Thanks to Dmitrey for this tip. This tip applies to WPGet 0.8, future versions may automatically support UTF-8.

wpget/utf-8_support.txt · Last modified: 2011-12-03 10:28:55 (external edit)