Trying to print accented UTF-8 characters, I get the "Wide character in print" warning:
print "žůžová čtvrteční řácká kúra"
# prints: žůžová ÄtvrteÄnà Åácká kúra
# and warns: Wide character in print at reply input line 1.
I know how to solve this in a script:
use utf8; # set source encoding
use open qw(:std :encoding(UTF-8)); # set encoding of standard streams
Is there a way to hook this setup into IPerl? I tried modifying the perl arguments (adding -Mutf8 -Mopen qw(:utf8 :encoding(UTF-8))) in kernel.json, but that file keeps getting overwritten each time IPerl is started.
As a temporary workaround, I hardcoded the arguments into the iperl command line wrapper, but that's obviously not the right way to do it :) Any recommendations as to how to do it right? Or is it simply not supported currently?
Trying to print accented UTF-8 characters, I get the "Wide character in print" warning:
I know how to solve this in a script:
Is there a way to hook this setup into IPerl? I tried modifying the
perl
arguments (adding-Mutf8 -Mopen qw(:utf8 :encoding(UTF-8))
) inkernel.json
, but that file keeps getting overwritten each time IPerl is started.As a temporary workaround, I hardcoded the arguments into the
iperl
command line wrapper, but that's obviously not the right way to do it :) Any recommendations as to how to do it right? Or is it simply not supported currently?