aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/javascripts/jquery_ujs.js
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-05-14 17:11:24 +0100
committerLouise Crow <louise.crow@gmail.com>2015-05-15 16:25:15 +0100
commitf198ca6944cb5ad5b81efbe42233837b8b773fbb (patch)
treecf2076727ab19219d052cd86dc1ab09af55d373e /app/assets/javascripts/jquery_ujs.js
parent203eea18feeaec3dc9a3e8e8af3b83de085b53ac (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