Hi, new DataMapper user here, apologies if this is a FAQ, I searched
(this group and the web in general) and I couldn't find my answer..

I am working with a legacy database that has latin1 character encoding
on the tables (and french language high-bit characters) and it seems
that DM connects with utf8 (which is the default character encoding of
my MySQL client library I guess, or possibly the remote database).

I am trying to find out how I can specify the connection encoding via
my script and/or DataMapper.  I am not using a framework here, just
bare bones DataMapper.   These are command-line scripts..

Any help would be appreciated.  I see mention of an :encoding
parameter but I'm not sure where I would pass that in..  Right now I
am using the DataMapper.setup() method as follows:

DataMapper.setup(:default, 'mysql://user:p...@localhost/dbname')

Adding :encoding as a third parameter throws an error.

My relevant versions are:

ruby 1.8.6 (2008-08-11 patchlevel 287)

data_objects (0.10.0)
dm-core (0.10.1)
dm-types (0.10.1)
dm-validations (0.10.1)

Thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to datamapper@googlegroups.com
To unsubscribe from this group, send email to 
datamapper+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to