Monday, November 29, 2010

[Rails] Re: incompatible character encodings: ASCII-8BIT and UTF-8

all,
Thanks for good ideas, but like for Robert K. it's not working for me
(ruby 1.9.2 and rails 3.0.3).

Robert K., check that your tables are of type = MyISAM and CHARACTER SET
utf8 in Mysql.

I get the same error as you; the problem appears almost every time, but
suddenly it works for again returning an error.

While we are waiting for a solution; how do you use encoding in the
erb-files? -> "Yes, .enforce-coding('utf-8') added to all instance in
erb file works" If you have the detail text in your file and the in
witch erb-file do I have to put this encoding I would be very thankful.

Thanks again to all.
Gjermund
developer and DBA

--
Posted via http://www.ruby-forum.com/.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate