Modify

Opened 7 years ago

Closed 2 years ago

#1495 closed defect (wontfix)

UnicodeEncodeError

Reported by: anonymous Owned by: coderanger
Priority: normal Component: CombineWikiPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

When I try to convert e.g. the camelcase wiki page included in trac i get the following
statement

Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/TracWebAdmin-0.1.2dev_r4240-py2.4.egg/webadmin/web_ui.py", line 109, in process_request
    path_info)
  File "build/bdist.linux-x86_64/egg/combinewiki/web_ui.py", line 58, in process_admin_request
  File "build/bdist.linux-x86_64/egg/combinewiki/formats.py", line 55, in process_combinewiki
  File "build/bdist.linux-x86_64/egg/combinewiki/formats.py", line 106, in _page_to_file
  File "encodings/iso8859_15.py", line 18, in encode
UnicodeEncodeError: 'charmap' codec can't encode character u'\u201c' in position 314: character maps to <undefined>

but some are functioning normal....

Attachments (0)

Change History (5)

comment:1 Changed 7 years ago by coderanger

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

This plugin doesn't support Unicode (or any multi-byte charsets) for the Postscript and PDF output formats, nor will it ever.

comment:2 Changed 7 years ago by anonymous

which characterset should I use then?
and why did it function with some files?
which lines should i add in trac.ini:

[combinewiki]
charset = ...

comment:3 Changed 7 years ago by anonymous

  • Resolution invalid deleted
  • Status changed from closed to reopened

comment:4 Changed 6 years ago by anonymous

Same problem here...strange, as I created all wiki pages from scratch with internal editor...
no unicode used, just plain ascii chars

comment:5 Changed 2 years ago by rjollos

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

Deprecated: Please try the TracWikiToPdfPlugin.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from coderanger. Next status will be '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.