in reply to Deleting Chinese characters while reading
Do I really understand what these lines do? No.
use uft8;
use open ':encoding(utf8)';
binmode(STDOUT, ':utf8'); (and the same for STDIN)
However, if all of this is new to you it's probably best to start with perlunitut.
As to your problem of deleting multi-byte characters: does the same problem happen in your terminal when not using perl? If so, that's a problem with your terminal settings and needs to be solved there.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Deleting Chinese characters while reading
by alexharv074 (Initiate) on Mar 01, 2015 at 04:31 UTC |