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.

  • Comment on Re: Deleting Chinese characters while reading

Replies are listed 'Best First'.
Re^2: Deleting Chinese characters while reading
by alexharv074 (Initiate) on Mar 01, 2015 at 04:31 UTC
    No, it's fine deleting the characters in the terminal, and also in other applications like vim, and indeed here in Safari. I do note that I have the same problem deleting characters if I simply type 'read c' from the command line.