Last modified: 2012-08-04 20:49:12 UTC
Some PostgreSQL installations use UTF8 as default encoding for the database (as is required by MediaWiki), but the default client encoding is set to something different. MediaWiki should always enforce UTF8 after opening the database connection to avoid problems in this situation. On recent PostgreSQL installations, this can easily be accomplished by applying the following patch to mediawiki/includes/db/DatabasePostgres.php: 187a188 > $this->doQuery('SET client_encoding="UTF8"');
fixed in r47724.
hi, when the default encoding for the databse is not utf8, this patch introduce a bug, isn't it ? I update to REL1_15_0 and I comment this line for my wiki to work. Is it possible to test something before setting "client_encoding" ? thank you.