From 7b9234074a5ee7972657971f5edab4a2aea62370 Mon Sep 17 00:00:00 2001 From: micafer Date: Mon, 25 May 2015 18:43:22 +0200 Subject: [PATCH] Encode to utf-8 the RADL recipes to enable special chars in them --- IM/radl/radl.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IM/radl/radl.py b/IM/radl/radl.py index 8340864ac..0878cd207 100644 --- a/IM/radl/radl.py +++ b/IM/radl/radl.py @@ -596,9 +596,10 @@ class configure(Aspect): """Store a RADL ``configure``.""" def __init__(self, name, recipe="", reference=False, line=None): - self.recipes = recipe + # encode the recipe to enable to set special chars in the recipes + self.recipes = str(recipe.encode('utf-8', 'ignore')) """Recipe content.""" - self.name = name + self.name = str(name.encode('utf-8', 'ignore')) """Configure id.""" self.reference = reference """True if it is only a reference and it isn't a definition."""