Modify

Opened 8 years ago

Closed 2 years ago

#579 closed defect (wontfix)

does not support UTF

Reported by: anonymous Owned by: 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 (0)

Change History (2)

comment:1 Changed 8 years ago by dbw

  • Cc GraemeWorthy added
  • 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:

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

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)

comment:2 Changed 2 years ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

This macro is deprecated. Please request the functionality for the IncludeMacro if you need it.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.