Modify

Opened 17 years ago

Closed 17 years ago

#1013 closed defect (duplicate)

exception while exporting

Reported by: Ittay Dror Owned by: Noah Kantrowitz
Priority: high Component: CombineWikiPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.10

Description (last modified by Noah Kantrowitz)

2006-12-14 15:06:29,498 Trac[main] ERROR: 'charmap' codec can't encode character u'\u201c' in position 1936:
 character maps to <undefined>
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 238, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-i686/egg/webadmin/web_ui.py", line 109, in process_request
  File "build/bdist.linux-i686/egg/combinewiki/web_ui.py", line 58, in process_admin_request
  File "build/bdist.linux-i686/egg/combinewiki/formats.py", line 40, in process_combinewiki
  File "build/bdist.linux-i686/egg/combinewiki/formats.py", line 90, in _page_to_file
  File "/usr/lib/python2.4/encodings/iso8859_15.py", line 18, in encode
    return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u201c' in position 1936: character maps to <un
defined>

Attachments (0)

Change History (4)

comment:1 Changed 17 years ago by Noah Kantrowitz

Description: modified (diff)
Keywords: needinfo added

Please verify that:

  1. You have the most recent version of the plugin.
  2. You are not trying to use UTF8 characters when exporting to PDF or PS.

comment:2 Changed 17 years ago by Ittay Dror

Keywords: needinfo removed

yep, have the latest version my default_charset is iso-8859-15 (as also evident in the stack trace i think)

comment:3 Changed 17 years ago by Ittay Dror

btw, i copied the page from a word doc.

comment:4 in reply to:  3 Changed 17 years ago by Noah Kantrowitz

Resolution: duplicate
Status: newclosed

Replying to ittayd:

btw, i copied the page from a word doc.

In UTF8, 0x201C is a reverse double quote. You probably have smart quotes turned on in Word. This character isn't part of ISO-8859-15 so it is correct in throwing an error. You will need to correct this in your page as HTMLDOC does not support UTF8 (#489).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
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.