I run into the following error whenever I try to run a rake task in
Heroku:
rake aborted!
PGError: ERROR: invalid byte sequence for encoding "UTF8": 0xc1c1
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".
: SELECT "entries"."id" FROM "entries" WHERE
("entries".search_id = 53) AND ("entries"."url" = E'http://
hi.baidu.com/������/blog/item/4afdfbfe9b2da33f5c60087a.html')
LIMIT 1
The way I interpret it is that PostGres is not configured to read
Asian characters and that this can be configured via the
client_encoding variable, but I don't know where to go from here.
I'm in the process of finding which method is causing this and similar
errors and applying a begin-rescue block on them, but how do you guys
configure this variable and deal with Asian characters?
--
You received this message because you are subscribed to the Google Groups
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en.