When I enter "Müller", "M ?? ller" appears on the screen. How can i fix this?
#!/usr/bin/env perl use warnings; use 5.012; use Term::ReadLine; my $term = Term::ReadLine->new( 'dummy' ); my $con = $term->readline( ': ' ); say $con; # On the screen: # : M ller # Müller
Apply the :utf8 layer to the STDIN and STDOUT file descriptors and pass them as arguments to Term::ReadLine->new() :
:utf8
STDIN
STDOUT
Term::ReadLine->new()
binmode STDIN, ':utf8'; binmode STDOUT, ':utf8'; my $term = Term::ReadLine->new( 'dummy', \*STDIN, \*STDOUT );
Source: https://habr.com/ru/post/1339320/More articles:Changing a virtual machine password - qemuWhere is the link to Android Android UI layout? - androidtool for exporting and comparing structure html dom - domWinForm and WPF User Controls - winformscan view the source that will be disabled by the website? - language-agnosticFacebook page design not working in IE8 - cssThis is the right way to free up pointer memory in C ++ - c ++How do you delete 3 shelf files in python 3? - python.NET Assembly viewer wanted - .netUsing alternative data streams (forks) in Windows 7? - c #All Articles