Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

accented characters do not work with thin

#98

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.

Reported by sampei · April 16th, 2009 @ 04:43 AM

State: resolved
Milestone: 1.1
Assigned to: macournoyer macournoyer

Activity

  1. macournoyer
    macournoyer
    • Milestone changed from Future to 1.1
    • State changed from new to open

    hey sampei,

    Have you tried w/ the latest version of Thin on master?

    April 17th, 2009 @ 08:36 AM

  2. macournoyer
    macournoyer
    • State changed from open to resolved

    awesome!

    April 24th, 2009 @ 04:34 PM

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.