Ticket #579 (new defect)

Opened 2 years ago

Last modified 2 years ago

does not support UTF

Reported by: anonymous Assigned to: GraemeWorthy
Priority: highest Component: RssGetMacro
Severity: blocker Keywords:
Cc: GraemeWorthy Trac Release: 0.9

Description

When fetching RSS in UTF-8 into wiki page with different encoding - the end result is broken wiki page: no output but error message is given and no chance to delete this version but for direct link hacking.

Attachments

Change History

11/05/06 22:53:03 changed by dbw

  • cc set to GraemeWorthy.
  • priority changed from normal to highest.

I'm having this same issue. Just trying to load hack changes on this site into my wiki.

RSS feed:

Error: Failed to load processor RSSget
No macro or processor named 'RSSget' found

Any idea on how to fix it?

Oops…
Trac detected an internal error:

'ascii' codec can't encode character u'\u2026' in position 658: ordinal not in range(128)


Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 206, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/trac/wiki/web_ui.py", line 116, in process_request
    self._render_view(req, db, page)
  File "/usr/lib/python2.3/site-packages/trac/wiki/web_ui.py", line 364, in _render_view
    req.hdf['wiki.page_html'] = wiki_to_html(page.text, self.env, req)
  File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 751, in wiki_to_html
    Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines)
  File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 614, in format
    out.write(result + os.linesep)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026' in position 658: ordinal not in range(128)

11/05/06 22:54:25 changed by dbw

Guess I better escape the sample call so you can see it...

![[RSSget(http://trac-hacks.org/log/?limit=100&mode=stop_on_copy&format=rss)]] 

Add/Change #579 (does not support UTF)




Change Properties
Action