Modify

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: Alec Thomas
Priority: low Component: TocMacro
Severity: normal Keywords:
Cc: Trac Release:

Description

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 Alec Thomas

Resolution: fixed
Status: newclosed

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
Status: closedreopened

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

63c63
<                 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 Alec Thomas

Resolution: fixed
Status: reopenedclosed

(In [383])

  • Decode anchor to UTF-8, closes #92

comment:4 Changed 11 years ago by Alec Thomas

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.

Thanks.

Modify Ticket

Action
as closed The owner will remain Alec Thomas.
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.