Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294944

Invalid byte sequence when using PostgreSQL and a language other than English is active

$
0
0

I get this error from drupal everytime I access a page with a blog entry:

# warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid byte sequence for encoding "UTF8": 0x97 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding". in /local/var/www/drupal-6.10_postgresql/includes/database.pgsql.inc on line 139.
# user warning: in /local/var/www/drupal-6.10_postgresql/modules/locale/locale.module on line 365.

# warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid byte sequence for encoding "UTF8": 0x97 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding". in /local/var/www/drupal-6.10_postgresql/includes/database.pgsql.inc on line 139.
# user warning: in /local/var/www/drupal-6.10_postgresql/modules/locale/locale.module on line 381.

I can reproduce this problem on different drupal installations and with different languages activated so I think it has to be something with the blog module and not the translations.

To reproduce:

  1. use postgresql 8.3.x
  2. activate blog module
  3. create a blog entry
  4. install and activate as default a language other than english. (I have try this with the spanish and danish translations)
  5. access any page that shows a blog entry

Any ideas? This is a big problem on busy sites because every page view with blog entries generates error entries by the dblog module


Viewing all articles
Browse latest Browse all 294944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>