Modify ↓
Opened 13 years ago
Last modified 12 years ago
#9999 assigned defect
Filter for milestone doesn't work with umlauts
Reported by: | Rochi | Owned by: | Chris Nelson |
---|---|---|---|
Priority: | normal | Component: | TracJsGanttPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
The filter for Milestones doesn't work with german umlauts.
milestone=SäHO
doesn't work
Attachments (0)
Change History (8)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
I found a solution for that, as long as you can use the TracQuery syntax as a filter, you can sort the specific tickets by keywords which written in ascii character in advance, so that you can have all things done
comment:4 Changed 12 years ago by
Status: | new → assigned |
---|
comment:6 Changed 12 years ago by
This problem appears to arise from
# Construct the querystring. query_string = '&'.join(['%s=%s' % (f, str(v)) for (f, v) in query_args.iteritems()])
which forces values to (ASCII) strings.
comment:7 Changed 12 years ago by
I had this problem with German umlauts too, and this one has helped:
-
tracjsganttplugin/0.11/tracjsgantt/tracjsgantt.py
3 3 from datetime import timedelta, datetime 4 4 from operator import itemgetter, attrgetter 5 5 6 from trac.util.text import to_unicode 6 7 from trac.util.html import Markup 7 8 from trac.util.text import javascript_quote 8 9 from trac.wiki.macros import WikiMacroBase … … 299 300 300 301 # Construct the querystring. 301 302 query_string = '&'.join(['%s=%s' % 302 (f, str(v)) for (f, v) in303 (f, unicode(v)) for (f, v) in 303 304 query_args.iteritems()]) 304 305 305 306 # Get the Query Object.
comment:8 Changed 12 years ago by
Note: See
TracTickets for help on using
tickets.
I had confronted with the same problem, milestone=研发中心, when the milestone's name is Chinese, JS Gantt will not work.