Hello, Today, I had to show some of the work done to my supervisor. When I wanted to show that all the tests ran correctly iI just ''raked'' as usual. However, every single unit test had an error. Off course that only happens when you have to do a demonstration. The problem however, was quickly discovered. I added yesterday ''encoding: utf8'' to database.yml (MySql 5.0.22) to correctly show some non-ascii characters, which works perfectly. After removing this rule, all tests ran correctly. The application itself had no problems with the new rule. Is this a known bug? If so, is there a fix. I''m running Rails 1.2. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 2/27/07, Joram <joram.barrez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > The problem however, was quickly discovered. > I added yesterday ''encoding: utf8'' to database.yml (MySql 5.0.22) to > correctly show some non-ascii characters, which works perfectly. After > removing this rule, all tests ran correctly. > > The application itself had no problems with the new rule. > Is this a known bug? If so, is there a fix. > I''m running Rails 1.2.Are all of your test scripts using UTF-8 string literals? Rails 1.2 has a Chars class for UTF-8 text. Unlike kCODE which modifies the Ruby string class methods to process UTF characters correctly. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---