Force utf-8 encoding when processing XML
This commit is contained in:
parent
50d3083cbd
commit
7ce4670164
4 changed files with 10 additions and 3 deletions
|
@ -6,7 +6,9 @@ class ProcessInteractionService < BaseService
|
|||
# @param [Account] target_account Account the Salmon was addressed to
|
||||
def call(envelope, target_account)
|
||||
body = salmon.unpack(envelope)
|
||||
xml = Nokogiri::XML(body)
|
||||
|
||||
xml = Nokogiri::XML(body)
|
||||
xml.encoding = 'utf-8'
|
||||
|
||||
return unless contains_author?(xml)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue