]> git.siccegge.de Git - ksp-webtool.git/commitdiff
Properly decode UIDs (utf-8 / ignore) master
authorChristoph Egger <christoph@christoph-egger.org>
Thu, 25 Dec 2014 17:34:27 +0000 (18:34 +0100)
committerChristoph Egger <christoph@christoph-egger.org>
Thu, 25 Dec 2014 17:34:27 +0000 (18:34 +0100)
templates/index.html

index 0b46a413be73b310a6d03c380a35f71f0419a8b1..00b8cdc01291f593c9ee16287aaf6d0087c4673f 100644 (file)
@@ -10,7 +10,7 @@
 <table>
   {% for entry in data %}
   <tr>
-    <th colspan="2" style="text-align:left;">{{data[entry][1][0].data}} {{data[entry][0].fingerprint}}</th>
+    <th colspan="2" style="text-align:left;">{{data[entry][1][0].data.decode('UTF-8', errors='ignore')}} {{data[entry][0].fingerprint}}</th>
   </tr>
   <tr>
     <td rowspan="{{1 + data[entry][1]|length}}">