Ticket #10135 (new defect)

Opened 11 months ago

Umlauts doesn't work

Reported by: falkb Assigned to: hoessler
Priority: normal Component: EstimationToolsPlugin
Severity: normal Keywords:
Cc: rjollos,osimons Trac Release: 0.12

Description

In function def execute_query(env, req, query_args): of utils.py, I tried to add

Index: estimationtoolsplugin/trunk/estimationtools/utils.py
===================================================================
--- estimationtoolsplugin/trunk/estimationtools/utils.py	(revision 11709)
+++ estimationtoolsplugin/trunk/estimationtools/utils.py	(working copy)
@@ -134,7 +137,14 @@
                         .replace('+', ' ')\
                         .replace('%23', '#')\
                         .replace('%28', '(')\
-                        .replace('%29', ')')
+                        .replace('%29', ')')\
+                        .replace('%C3%84', 'Ä')\
+                        .replace('%C3%96', 'Ö')\
+                        .replace('%C3%9C', 'Ü')\
+                        .replace('%C3%A4', 'ä')\
+                        .replace('%C3%B6', 'ö')\
+                        .replace('%C3%BC', 'ü')\
+                        .replace('%C3%9F', 'ß')
     env.log.debug("query_string: %s" % query_string)
     query = Query.from_string(env, query_string)

but just get this error:

Error: Macro WorkloadChart(milestone=testgehäuse) failed

You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.

How must umlauts be fixed?

Attachments


Add/Change #10135 (Umlauts doesn't work)




Change Properties
Action