Module: check_mk
Branch: master
Commit: 733ff4cda582bfe7ee02a92622e053b1a2a6f44b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=733ff4cda582bf…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 22 10:17:49 2017 +0100
Writing werks to text: Deal with special chars in component text
Change-Id: I97ede119d755e030e93a645bd5f7199a13629d3c
---
lib/werks.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/werks.py b/lib/werks.py
index 98dbea1..15607a5 100644
--- a/lib/werks.py
+++ b/lib/werks.py
@@ -204,7 +204,7 @@ def write_as_text(werks, f, write_version=True):
component = werk["component"]
f.write(" %s:\n" % \
- werk_components().get(component, component))
+ werk_components().get(component, component).encode("utf-8"))
write_werk_as_text(f, werk)