Menu

#9 Encoding charset

closed
nobody
None
5
2008-06-25
2008-06-25
No

I have found one bug, because I use spanish characters, and not showed correctly via web.

In the file ezmlm-www.pl, the line 549 should be:

binmode STDOUT, ':utf-8';

instead of

binmode STDOUT, ':utf8';

Greeting

Normando Hall

Discussion

  • Alessandro Ranellucci

    Logged In: YES
    user_id=586226
    Originator: NO

    perldoc -f binmode actually says :utf8 without the hyphen so I guess it's correct as it is.

    Which characters are not showed correctly? The interface strings or the message contents? Can you provide a URL to your ezmlm-www setup?

     
  • Normando Hall

    Normando Hall - 2008-06-25

    Logged In: YES
    user_id=781149
    Originator: YES

    The problem is in the message content. Example:

    Está funcionando bien

    should be

    Está funcionando bien

    Changing only this line I fix the problem.

    Try at:

    http://www.unixlan.com.ar/list/index.cgi?0::5

    I have undo the changes for you so you can see the problem.

     
  • Alessandro Ranellucci

    Logged In: YES
    user_id=586226
    Originator: NO

    Then I'm not able to debug as it may be caused by the formatting and headers of the message itself. ezmlm-www is reported to work well with many alphabets (Italian and even Chinese), so we need a stronger test case before accepting a bug related to the way it handles Unicode.

    binmode definitely needs ':utf8'. I guess that by using 'utf-8' you're instead just disabling the Unicode output filter. Feel free to patch it how it works for you, but this doesn't look as a bug unless a stronger and more detailed failing test case is provided. Closing.

     
  • Alessandro Ranellucci

    • status: open --> closed
     
  • Normando Hall

    Normando Hall - 2008-06-25

    Logged In: YES
    user_id=781149
    Originator: YES

    Alex, I have commeted this line and work ok, so I think there is no necesary to re-encode again because perl always use UTF-8 as say in perldoc -f binmode:

    "...The ":encoding" also implicitly pushes on top of itself the ":utf8" layer because internally Perl will operate on UTF-8 encoded Unicode characters..."

     
  • Normando Hall

    Normando Hall - 2008-06-25
    • status: closed --> open
     
  • Alessandro Ranellucci

    • status: open --> closed
     
  • Normando Hall

    Normando Hall - 2008-06-25

    Logged In: YES
    user_id=781149
    Originator: YES

    Well...

    I have commented aou the line 549: binmode STDOUT, ':utf-8';
    and now run ok.

     

Log in to post a comment.

MongoDB Logo MongoDB