mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: upload watched words should use UTF-8
This commit is contained in:
@@ -25,7 +25,7 @@ class Admin::WatchedWordsController < Admin::AdminController
|
||||
|
||||
Scheduler::Defer.later("Upload watched words") do
|
||||
begin
|
||||
File.open(file.tempfile, encoding: "ISO-8859-1").each_line do |line|
|
||||
File.open(file.tempfile, encoding: "bom|utf-8").each_line do |line|
|
||||
WatchedWord.create_or_update_word(word: line, action_key: action_key) unless line.empty?
|
||||
end
|
||||
data = { url: '/ok' }
|
||||
|
||||
Reference in New Issue
Block a user