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
|
@ -11,7 +11,9 @@ class FetchRemoteStatusService < BaseService
|
|||
def process_atom(url, body)
|
||||
Rails.logger.debug "Processing Atom for remote status at #{url}"
|
||||
|
||||
xml = Nokogiri::XML(body)
|
||||
xml = Nokogiri::XML(body)
|
||||
xml.encoding = 'utf-8'
|
||||
|
||||
account = extract_author(url, xml)
|
||||
|
||||
return nil if account.nil?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue