Commit 37d08e6c authored by Lorenz Steinert's avatar Lorenz Steinert

hofully fixed umlaute bug

parent 46f0738d
......@@ -32,7 +32,7 @@ class Protokollskript:
def __init__(self):
""" Hier Sprecher und Protokollant setzen """
self.sprecher = "Silvia Hiebel"
self.protokollant = "Markus Ühlein"
self.protokollant = u"Markus Ühlein"
self.num_cols = 4
self.num_cols_ext = 1
self.editor = "vim"
......@@ -72,12 +72,12 @@ class Protokollskript:
def clean_string(self, data):
"""remove "A, "O, "U, "a, "o, "u from input"""
data = self.reg_Kovac.sub("Kova"+r"\v"+"{c}", data)
data = self.reg_A.sub('Ä', data)
data = self.reg_O.sub('Ö', data)
data = self.reg_U.sub('Ü', data)
data = self.reg_a.sub('ä', data)
data = self.reg_o.sub('ö', data)
data = self.reg_u.sub('ü', data)
data = self.reg_A.sub(u'Ä', data)
data = self.reg_O.sub(u'Ö', data)
data = self.reg_U.sub(u'Ü', data)
data = self.reg_a.sub(u'ä', data)
data = self.reg_o.sub(u'ö', data)
data = self.reg_u.sub(u'ü', data)
return data
def get_protokollant_ldap(self, protokollant):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment