Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Try this minipatch:
rails.lighthouseapp.com/projects/8994/tickets/2476-ascii-8bit-encoding-of-query-results-in-rails-232-and-ruby-191#ticket-2476-22
The patch is not the best solution, but it works if you always have UTF-8.
Good overview of the problem by Yehuda Katz
Carefully check 1) data encoding from the database; 2) the encoding of the form data, which is later saved to the database, and 3) the encoding of templates and views (view) - for example, save everything in UTF-8 without BOM.
'mysql' often returns data in ASCII-8BIT (the standard encoding for binary data). Alternatively put 'ruby-mysql'.
'pg' works for me without errors.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question