diff --git a/src/calibre/utils/formatter.py b/src/calibre/utils/formatter.py index bb7e953d19..8936befa95 100644 --- a/src/calibre/utils/formatter.py +++ b/src/calibre/utils/formatter.py @@ -55,7 +55,7 @@ class _Parser(object): } x = float(x if x else 0) y = float(y if y else 0) - return str(ops[op](x, y)) + return unicode(ops[op](x, y)) def _template(self, template): template = template.replace('[[', '{').replace(']]', '}')