Up until recently everything was working fine on my machines but since a few days I keep getting an error Encoding::UndefinedConversionError: U+2713 from UTF-8 to US-ASCII any time I post something from the browser to the server.
First since posts were involved I tried the most obvious thing with adding encoding to the database.yml:
development:
adapter: postgresql
hostname: localhost
port: 5432
username: mikael
password:
database: dev
encoding: utf8
If I install ruby-debug19 and ruby-debug-base19 and run rails with:
rails s --environment=development --debug
Now everything is working fine. How the hell am I supposed to find out the cause of the problem so that I may fix it?
EDIT 1:
1.9.3p0 :001 > Encoding.default_internal
=> #<Encoding:UTF-8>
1.9.3p0 :002 > Encoding.default_external
=> #<Encoding:UTF-8>
EDIT 2:
If I run in production mode everything works fine.
This sounds like a bug that has been reported in Rails 3.1.2 has a workaround and the next release of 1.9.3 should fix the issue