In perltidy version 20150815 you can use: perltidy -utf8 file.pl
Steve On Fri, Jul 31, 2015 at 4:35 PM, 積丹尼 Dan Jacobson <jida...@jidanni.org> wrote: > Package: perltidy > Version: 20140328-1 > Severity: wishlist > File: /usr/share/man/man1/perltidy.1p.gz > X-Debbugs-cc: perlt...@users.sourceforge.net > > On http://perltidy.sourceforge.net/BUGS.html we read > "Perltidy does not handle UTF-8 encoded files". > > Well that should be > "Perltidy does not handle UTF-8 encoded variable names". > > Quite different! > > Anyway, the Debian perltidy man page could mention: > > Workaround for perltidy not handling UTF-8 encoded variable names: > > $ echo 'use utf8; $h{段}=1;'|perl -c > - syntax OK > $ echo 'use utf8; $h{段}=1;'|perltidy > ## Please see file perltidy.ERR > use utf8; $h{段}=1; > $ echo 'use utf8; $k="段"; $h{$k}=1;'|perltidy > use utf8; > $k = "段"; > $h{$k} = 1; > > Else one little UTF-8 character could stall ones whole project workflow. >