Closed flinhong closed 7 years ago
最近有点忙,刚提的1.4.4版本解决了这个问题,更新一下试试
🤗赞一个
From: Fuhao Song [mailto:notifications@github.com] Sent: 16 January 2017 12:00 To: AlanWalk/markdown-toc markdown-toc@noreply.github.com Cc: Frank Lin (林宏) flinhong@hotmail.com; Author author@noreply.github.com Subject: Re: [AlanWalk/markdown-toc] Anchor for Chinese characters (#13)
最近有点忙,刚提的1.4.4版本解决了这个问题,更新一下试试
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/AlanWalk/markdown-toc/issues/13#issuecomment-272769098, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMQ7dDxUOeCwS6uql6ewKZVaSdwS4-ytks5rSutVgaJpZM4Lda_X.
It seems that Chinese characters (or other characters other than English) in headings will convert into UTF-8 code like
%AF%B9%E8
in the URL part. Thus cannot be used as anchors in vscode preview mode.Maybe something like
force_encoding('utf-8')
can fix this.