diff options
Diffstat (limited to 'lib/python/Components/Converter/RadioText.py')
| -rw-r--r-- | lib/python/Components/Converter/RadioText.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/python/Components/Converter/RadioText.py b/lib/python/Components/Converter/RadioText.py index 77ec58ed..e4499950 100644 --- a/lib/python/Components/Converter/RadioText.py +++ b/lib/python/Components/Converter/RadioText.py @@ -4,12 +4,16 @@ from Components.Element import cached class RadioText(Converter, object): def __init__(self, type): Converter.__init__(self, type) + self.type = type @cached def getText(self): rt = self.source.radiotext if rt is None: return "N/A" - return rt - + text = rt.getRadioText() + if self.type == "RadioText-UTF8": + return text.decode("latin-1").encode("utf-8") + else: + return text text = property(getText) |
