incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string) #361

This commit is contained in:
Karel Pičman 2015-03-05 09:31:25 +01:00
parent 0f15563421
commit e1221a6fbd

View File

@ -386,7 +386,7 @@ class DmsfFile < ActiveRecord::Base
end
if (allowed && project_included)
dmsf_file.event_description = dochash['sample']
dmsf_file.event_description = dochash['sample'].force_encoding('UTF-8') if dochash['sample']
results.push(dmsf_file)
results_count += 1
end