#98 ✓resolved
sampei

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 '</html' and the final '>' 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

  • macournoyer

    macournoyer April 17th, 2009 @ 08:36 AM

    • 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?

  • sampei

    sampei April 19th, 2009 @ 06:28 AM

    I don't understand.

    What is the latest version of Thin on master?

    I did gem install thin

    so if now I launch a "gem list --local" I have:

    (...) thin (1.0.0) (...)

    Is this the latest version?

    Thank You.

  • chris

    chris April 23rd, 2009 @ 05:50 PM

    Hello,

    just to let you know that I had the same problem with thin 1.0.0. However, it looks like the problem is no longer present on master (v1.2.1).

    Regards, Chris

  • macournoyer

    macournoyer April 24th, 2009 @ 04:34 PM

    • State changed from “open” to “resolved”

    awesome!

  • sampei

    sampei April 26th, 2009 @ 02:28 PM

    Could you tell me how to install the v1.2.1, please?

    Should I do a gem install with github source?

    Thank You

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

Pages