On Jun 22, 2007, at 0:42 , Manfred Stienstra wrote:

> Not many people know why and that you have to set the encoding in the
> database driver.

AIUI, the server encoding and the client encoding (here defined by  
the driver), don't necessarily have to match. In cases where the  
client encoding doesn't match the server encoding, the server  
translates from the client encoding to the server encoding. For  
related PostgreSQL documentation, see

http://www.postgresql.org/docs/8.2/interactive/multibyte.html

I'd be surprised if other database servers don't have similar  
functionality.

I think a more likely problem is when the HTML charset and client  
encoding don't match.

Of course, if the default is UTF-8 for the HTML, it makes sense to  
use UTF-8 in the database client (driver)  as well.

Michael Glaesemann
grzm seespotcode net



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to