Problem characters

hey all

new to the list. we’re using redcloth 3.0.4 on a live website

i’m finding some characters are causing ‘stack level too deep’
errors… i’m not sure which character exactly, but i think one of the
following is the problem

“
â€
‘
’

is this a problem which can be fixed in redcloth and if not have you
got any suggestions on how I can control our users? do we need to
scrape the error characters or can redcloth do that for us?

thanks ahead

As far as I know, RedCloth 3.0.4 bugs are being ignored in favour of the
the new 4.0 version that’s just round the corner (as 4.0 fixes most of
these).

I suggest you replace your RedCloth with the new version at
https://code.whytheluckystiff.net/redcloth/wiki/SuperRedCloth

gem install RedCloth --source http://code.whytheluckystiff.net

^ should do the trick. I wouldn’t use the bleeding edge version in git
yet because there are a couple of bugs I’ve just reported relating to
links (I think other Jason probably knows this from failing test cases
tbh) and latex formatting (Not to mention you need a recent copy of
Ragel too)

From what I can see the new RedCloth seems to handle UTF-8 encoding, so
it should sort out your issues.

Jase

Have you tried the 4.0 pre-release testing gems? They’re a little out
of date, but it should still give you a good idea of whether it will
work in RedCloth 4 or not.