'parse': Fatal error from happymapper gem

K

kevin peter

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????
 
B

Bala TS

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top