... write method can not handle UTf8 data ...
Net::SFTP::Foreign's write method begins like this:
sub write { @_ == 3 or croak 'Usage: $sftp->write($fh, $data)'; my ($sftp, $rfh) = @_; $sftp->flush($rfh, 'in') or return undef; utf8::is_utf8($_[2]) and croak "write method can not handle UTf8 d +ata"; ...
so, I'd say your $coords is in UTF-8, which the module simply doesn't seem to support. More precisely, the code croaks if the utf8 flag of $_[2] (i.e. $data, or $coords) is on.
Try finding out if the flag is on for a good reason ('cos the data actually is (needs) UTF-8), or if it just got set by accidence — like when merging an ISO-Latin1 string with a UTF-8 one, which would cause the ISO-Latin1 part to be "upgraded". (see perluniintro)
In reply to Re: UTF8 error when using Net::SFTP::Foreign
by almut
in thread UTF8 error when using Net::SFTP::Foreign
by deadpickle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |