0
在heroku上運行應用程序,並且當人們嘗試在文本字段中輸入其生物文本時出現activerecord語句無效錯誤。不正確的字符串值 - Rails 4,ActiveRecord,MySQL RDS
ActiveRecord::StatementInvalid: Mysql2::Error: Incorrect string value: '\xEF\x83\x98\x09Fl...' for column 'bio'
有一種簡單的方法來解決這個不需要我放棄我的數據庫並重新創建它?
每當有人輸入unicode字符到生物文本字段,我得到一個500.有沒有一種簡單的方法來解決這個heroku? –
我想通了:使用此遷移連接到我的生產數據庫並轉換爲UTF-8:https://gist.github.com/bradherman/b0606ef2186b6b481ee1 –