Detab should be multi-byte aware?
John Gruber
gruber at fedora.net
Mon Oct 9 20:34:48 EDT 2006
Michel Fortin <michel.fortin at michelf.com> wrote on 10/9/06 at
8:26 PM:
> If anyone is interested in a fix for PHP Markdown, just change
> the call to the `strlen` function within detab to a call to
> `mb_strlen($line, 'utf-8')`. I'll fix this for the next
> version.
Will that still work if people pass in Windows Latin 1 or Mac
Roman-encoded text? Yes, I'm too lazy to try it...
-J.G.
More information about the Markdown-Discuss
mailing list