diff options
author | Eugen <eugen@zeonfederated.com> | 2017-04-07 11:09:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 11:09:14 +0200 |
commit | 1c351709bc45611c2ed48fb8539c2b27ab51b6fe (patch) | |
tree | 4ba87550f7c2ef476b59a71a0eeac8153f24ec53 /app/lib | |
parent | 6d6a429af8fe4bd92ed497f401676353fdc603e0 (diff) |
Force UTF8 encoding on generated XML (#1140)
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/atom_serializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/atom_serializer.rb b/app/lib/atom_serializer.rb index 21f485c2d..4e01c3d43 100644 --- a/app/lib/atom_serializer.rb +++ b/app/lib/atom_serializer.rb @@ -7,7 +7,7 @@ class AtomSerializer def render(element) document = Ox::Document.new(version: '1.0') document << element - "<?xml version=\"1.0\"?>#{Ox.dump(element)}" + ('<?xml version="1.0"?>' + Ox.dump(element)).force_encoding('UTF-8') end end |