Modify

Opened 8 years ago

Closed 8 years ago

#1013 closed defect (duplicate)

exception while exporting

Reported by: ittayd Owned by: coderanger
Priority: high Component: CombineWikiPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.10

Description (last modified by coderanger)

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 8 years ago by coderanger

  • 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 8 years ago by ittayd

  • 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 follow-up: Changed 8 years ago by ittayd

btw, i copied the page from a word doc.

comment:4 in reply to: ↑ 3 Changed 8 years ago by coderanger

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

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).

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.