'parse': Fatal error from happymapper gem

Hi I am getting this error

“Fatal error: Document labelled UTF-16 but has UTF-8 content at :1.
(LibXML::XML::Error)”

As below

/usr/lib/ruby/gems/1.8/gems/happymapper-0.3.2/lib/happymapper.rb:84:in
`parse’:
Fatal error: Document labelled UTF-16 but has UTF-8 content at :1.
(LibXML::XML::Error)

from
/usr/lib/ruby/gems/1.8/gems/happymapper-0.3.2/lib/happymapper.rb:84:in
`parse’
from wther.rb:36

when i am parsing xml to ruby object

Any have idea???

I think it is work. in database.yml file like this way

development:
adapter: mysql
encoding: utf8
database: database_name
username: root
password: password

can you try like this way?

development:
adapter: mysql
encoding: utf16
database: database_name
username: root
password: password

I think it is may be work.

I am getting that problem when i am parsing xml to ruby

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs