diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-05-14 17:11:24 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-05-15 16:25:15 +0100 |
commit | f198ca6944cb5ad5b81efbe42233837b8b773fbb (patch) | |
tree | cf2076727ab19219d052cd86dc1ab09af55d373e /app/assets/javascripts/jquery_ujs.js | |
parent | 203eea18feeaec3dc9a3e8e8af3b83de085b53ac (diff) |
Force attachment filenames to utf-8 before trying to save them
In a database with encoding SQL-ASCII, an invalid utf-8 filename
can be saved but will cause an "invalid byte sequence in UTF-8"
when the filename is prepared for display. In a database with a
UTF-8 encoding, saving the string will cause an error like
"ActiveRecord::StatementInvalid (PG::Error: ERROR: invalid byte
sequence for encoding "UTF8""
Diffstat (limited to 'app/assets/javascripts/jquery_ujs.js')
0 files changed, 0 insertions, 0 deletions