http://qs321.pair.com?node_id=243622


in reply to unicode in function

Yes, the problem is that Perl is supposing your filehandles should by written to in utf-8, but you want them raw. You should read perldoc -f binmode, and try:

binmode RAW,':raw';

-- 
        dakkar - Mobilis in mobile