in reply to Re^3: UTF8 error when using Net::SFTP::Foreign
in thread UTF8 error when using Net::SFTP::Foreign

I'd say the flag is on "for no good reason", because the content is exactly the same as before manipulating $s (i.e. "hello"), and all characters occurring can be represented in plain ASCII.

What's gained by knowing that?

If the flag is on for no good reason, encode the text!
If the flag is on for a good reason, encode the text!

  • Comment on Re^4: UTF8 error when using Net::SFTP::Foreign

Replies are listed 'Best First'.
Re^5: UTF8 error when using Net::SFTP::Foreign
by almut (Canon) on Feb 18, 2009 at 05:04 UTC

    A third option (in addition to encoding or downgrading - as you've mentioned) could've been to simply fix the code that inadvertendly upgrades $coords...  as those coordinates appear to be simple numbers, I wouldn't know why unicode would need to play a role at all here.  That's why I got the impression that something unintentional might be going on in the OP's code...