Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#92 closed defect (fixed)

TocMacro can not work in Japanese title

Reported by: anonymous Owned by: athomas
Priority: low Component: TocMacro
Severity: normal Keywords:
Cc: Trac Release:


In Japanese, TocMacro can not work. So, I make a patch. Please check it.

60c60 < default_anchor = anchor = Formatter._anchor_re.sub("", header.decode('utf-8')) ---

default_anchor = anchor = Formatter._anchor_re.sub("", header)

Attachments (0)

Change History (5)

comment:1 Changed 11 years ago by athomas

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

Is this working now? jouvin made some changes which I believe should clear this up.

comment:2 Changed 11 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

No, version 320 is not working.
Please decode anchor to utf-8.

<                 default_anchor = anchor = Formatter._anchor_re.sub("",header.decode('utf-8'))
>                 default_anchor = anchor = Formatter._anchor_re.sub("", header)

comment:3 Changed 11 years ago by athomas

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

(In [383])

  • Decode anchor to UTF-8, closes #92

comment:4 Changed 11 years ago by athomas

Unfortunately this change breaks other international characters, as reported in #146. I don't suppose you have a solution to this? Perhaps I need to used the encoding from the HTTP request.

comment:5 Changed 11 years ago by anonymous

I understood. But, I don't have another solutions..

Please cancel the change if other troubles occur.


Add Comment

Modify Ticket

as closed The owner will remain athomas.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.