Hi,

El 04/09/2011 20:53, Ilya Boltnev escribió:
I create scaffold and trying to save text with cirllic symbols
i recieved:
Encoding::UndefinedConversionError: U+043F from UTF-8 to US-ASCII:
my database charset is utf8
in database.yml encoding:utf8
why rails is still trying to convert text to ascii?
what should i do to save my data in utf8?

Difficult to know where exactly is the problem, I work with latin symbols and after many encodings problems, I always convert the files to utf-8 (without bom) and add the magic comment "# encoding: UTF-8" to all the ".rb" and ".erb" files.

--
Miquel Cubel

--
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to