diff options
Diffstat (limited to 'app/services/fetch_remote_account_service.rb')
-rw-r--r-- | app/services/fetch_remote_account_service.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/fetch_remote_account_service.rb b/app/services/fetch_remote_account_service.rb index 7a65236b6..7cbc9f6ec 100644 --- a/app/services/fetch_remote_account_service.rb +++ b/app/services/fetch_remote_account_service.rb @@ -9,7 +9,9 @@ class FetchRemoteAccountService < BaseService private def process_atom(url, body) - xml = Nokogiri::XML(body) + xml = Nokogiri::XML(body) + xml.encoding = 'utf-8' + url_parts = Addressable::URI.parse(url) username = xml.at_xpath('//xmlns:author/xmlns:name').try(:content) domain = url_parts.host |