converting html with \xa9 to Markdown and using iconv?
pagaltzis at gmx.de
Thu Mar 22 19:11:21 EDT 2007
* Jeremy C. Reed <reed at reedmedia.net> [2007-03-22 22:35]:
> I found perl module HTML::Entities but I can't get its encode_entities()
> to do what I want.
You’re probably not making the sure your input is properly
decoded first, but that’s just a guess. Can you post some code?
> I thought I could convert the characters back with perl with
> perl -pe "s/([\x80-\xff])/'&#' . ord($1) . ';'/eg;" But that
> failed from command line. It worked in a perl script though.
Again probably the same problem. Post some code.
Aristotle Pagaltzis // <http://plasmasturm.org/>
More information about the Markdown-Discuss