development: adapter: postgresql encoding: UTF-8
development: adapter: postgresql encoding: utf8
Hello ereryone.
In my sinatra application I use datamapper with postgres and sqlite adapters.
I use sqlite in development and every works fine.
But then I deploy application and try to use with postgres I\ve got strange errors, like:Encoding Unicode is not a known Ruby encoding for PostgreSQL
andincompatible character encodings: ASCII-8BIT and UTF-8 (Encoding::Compatibili tyError)
Please help me.
Thank you
--
You received this message because you are subscribed to the Google Groups "DataMapper" group.
To view this discussion on the web visit https://groups.google.com/d/msg/datamapper/-/DN2d8qeMnHAJ.
To post to this group, send email to datam...@googlegroups.com.
To unsubscribe from this group, send email to datamapper+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
configure :production do
DataMapper.setup(:default, {
:adapter => 'postgres',
:encoding => 'UTF8',
:host => 127.0.0.1',
:username => 'user' ,
:password => 'god',
:database => 'prod_db})
end