unicodemarkdownbluecloth

BlueCloth 2 and unicode


The following Haml causes to a Encoding::UndefinedConversionError when the latest BlueCloth (2.0.11) is used for markdown processing under Ruby 1.9.2:

:markdown
  résumé

Apparently, the humble é character is enough to make BlueCloth throw a fit! Is there a fix?


Solution

  • For now, I've worked around this by installing Maruku and using the :maruku filter instead. But this isn't a perfect solution for everyone, so I'd love to see a better answer.