Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Deleting Chinese characters while reading

by hippo (Bishop)
on Feb 28, 2015 at 11:39 UTC ( [id://1118166]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1118166]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 15:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found