UTF-8 charset encoding problem in Rails 0.14.4

Hi,

International characters are displayed incorrectly with Rails 0.14.4,
Mysql 4.1, active_record\vendor\mysql.rb on Windows XP. My database is
in UTF-8 charset and also pages are displayed in utf8 encoding.

Everything worked fine until the latest Rails release candidate. I have
tried to find the problem comparing the new and old versions of
mysql_adapter.rb and vendor\mysql.rb but not found anything strage…

(The new encoding connection option doesn’t work with the mysql bindings
written in Ruby.)

Any hints?

Btw, is there someone using the mysql C bindings under Windows? Where to
get the Windows binaries of it?

Thanks,
Karel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Dec 13, 2005, at 3:52 AM, Karel M. wrote:

Everything worked fine until the latest Rails release candidate. I
have
tried to find the problem comparing the new and old versions of
mysql_adapter.rb and vendor\mysql.rb but not found anything strage…

Yes, there is better :encoding support with the mysql-ruby driver.
I have reenabled the halfway support with the bundled ruby-mysql driver.
Look for it today in 1.0.

Best,
jeremy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)

iD8DBQFDnwgBAQHALep9HFYRAq5vAKDiAZHy5goBKDw4914a2nt/go4cqQCdHFYo
teDoxmjutxSUMopGmRqKMF4=
=4oBr
-----END PGP SIGNATURE-----

Nice, seems to work fine with Rails 1.0 and the “encoding: utf8”
options added in config/database.yml to all the environments.

Thanks,
Karel

Jeremy K. wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Dec 13, 2005, at 3:52 AM, Karel M. wrote:

Everything worked fine until the latest Rails release candidate. I
have
tried to find the problem comparing the new and old versions of
mysql_adapter.rb and vendor\mysql.rb but not found anything strage…

Yes, there is better :encoding support with the mysql-ruby driver.
I have reenabled the halfway support with the bundled ruby-mysql driver.
Look for it today in 1.0.

Best,
jeremy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)

iD8DBQFDnwgBAQHALep9HFYRAq5vAKDiAZHy5goBKDw4914a2nt/go4cqQCdHFYo
teDoxmjutxSUMopGmRqKMF4=
=4oBr
-----END PGP SIGNATURE-----