Menu

Warning for undecoded utf_8

Ashwin
2008-09-13
2013-06-03
  • Ashwin

    Ashwin - 2008-09-13

    I get this error message when I use Finance::Quote,
    Parsing of undecoded UTF-8 will give garbage in Quote.pm line 243.

    I am using perl 5.8.8 on Mac OSX Leopard. And installed Finance::Quote via CPAN.

    The solution I found to this was adding

    use Encode; to the beginning of the Quote.pm.

    And changing, $te->parse($data); in line 243 to
    $te->parse(decode_utf8($data));

    Is this ok? I am not getting the warning anymore.

    Thanks

     
    • Erik Colson

      Erik Colson - 2008-09-21

      Hi Ashwin,

      I'm also using F::Q on a MacosX Leopard system and I can't reproduce your errror. Could you please post a piece of code to test on my system ?

      Would you mind posting a bug report on
      http://rt.cpan.org/Public/Dist/Display.html?Status=Active&Name=Finance-Quote   ?

      Thanks

      --
      erik

       
    • Zoltan Levardy

      Zoltan Levardy - 2008-12-04

      i had exactly the same issue by developing Hungarian module. Ashwin's solution was great for my module, just added the Encode lib and decode for parsing. It fixes on Win Xp Pro.
      thx mate ;)

       

Log in to post a comment.