#98 ✓resolved

accented characters do not work with thin

Reported by sampei | April 16th, 2009 @ 04:43 AM | in 1.1

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.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket