Open input file in binary mode an let XML parser deal with encoding.

Fixes #26
This commit is contained in:
Eduard Braun 2015-12-08 23:38:06 +01:00
parent 1a6ff29c14
commit 4eade69201
3 changed files with 28 additions and 8 deletions

View file

@ -1,5 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg">
<desc>ú</desc>
<svg xmlns="http://www.w3.org/2000/svg">
<desc id="hello">Hello in many languages:
ar: أهلا
bn: হ্যালো
el: Χαίρετε
en: Hello
hi: नमस्ते
iw: שלום
ja: こんにちは
km: ជំរាបសួរ
ml: ഹലോ
ru: Здравствуйте
ur: ہیلو
zh: 您好</desc>
<desc id="common">“”—…°©®™•½¼¾⅓⅔†‡µ¢£€«»♠♣♥♦¿<EFBFBD></desc>
<desc id="math">:-×÷±∞π∅≤≥≠≈∧∨∩∪∈∀∃∄∑∏←↑→↓↔↕↖↗↘↙↺↻⇒⇔</desc>
<desc id="supersub">⁰¹²³⁴⁵⁶⁷⁸⁹⁺⁻⁽⁾ⁿⁱ₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎</desc>
</svg>

Before

Width:  |  Height:  |  Size: 168 B

After

Width:  |  Height:  |  Size: 731 B

Before After
Before After