I have an rails application with an mySQL database and not the permission to change the database password of the user. The problem is that the password contains a mutated vowel like: asÖs8ss when I try to run rake db:migrate the migration fails with this error:
rake aborted!
special characters are not allowed
I tried to escape the Ö in this ways:
\xC3\x96
\u00D6
But this doesn’t help. I also added encoding: UTF8 to the database connection and #encoding: utf-8 to the top of the database.yml but nothing helps to solve my problem.
Has anyone an idea how to escape the Ö right or to fix this somehow?
UPDATE I am using JRuby, if this help?
After I updated to the newest version of JRuby and run
bundle updateI got it to work. Also you have to make sure, all your files areutf-8on my windows machine I had to configure my editor, because default wasANSI.I need to run
db:migratewith this command: