SQLite Forum

Unicode and CLI for Mac
Login
Apologies. Yes I'm running High Sierra 10.13.6 on an iMac. I've added the following to my scripts:
<code>
############# must include for Unicode
use 5.14.0; # https://perldoc.perl.org/perluniintro
use Encode qw(encode decode);
binmode(STDOUT, "encoding(UTF-8)");
use open ":std", ":encoding(UTF-8)";
use locale;
use warnings FATAL => "utf8";
#############
</code>
May be a bit of overkill, so if you see anything not necessary please advise.
I've got all my scripts to properly handle adding and retrieving from the sqlite DB and rendering Unicode correctly. I'm using the standard Terminal app and bash is the shell.