I noticed Thin does not work well if there are accented
characters in the html source. These characters, used in Italian
language, are:
à,è,é,ì,ò,ù.
Each time Thin meets an accented character in the html it is
rendering, the entire html page is cut of one character.
So, because the html source ends with '
' (of course), this becomes '' is sent on the next page requested.
So the next page begins with '>HTTP' instead of 'HTTP' and it is
not recognized from web browser.
I think this happens because unicode characters (such as
à,è,...) take 2 bytes instead of one.
I noticed this issue with ruby 1.9.0 and ruby 1.9.1 and rails
2.2.2 and rails 2.3.2. The error is present but is ignored if I
launch 'thin start' and then I go to localhost:3000. But the same
error make the web app not working if I have an Apache2 with proxy
on a thin server.