Modify

Opened 18 years ago

Closed 12 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 18 years ago by dbw

Cc: GraemeWorthy added; anonymous removed
Priority: normalhighest

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 12 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain GraemeWorthy.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.