develooper Front page | perl.perl5.porters | Postings from August 2021

Re: "use v5.36.0" should imply UTF-8 encoded source

Thread Previous | Thread Next
From:
Veesh Goldman
Date:
August 2, 2021 16:45
Subject:
Re: "use v5.36.0" should imply UTF-8 encoded source
Message ID:
CAO-W_8C1GZQPbsKMd9DBLYfoOSznPEoYd6YJoDRghErBn=GWdQ@mail.gmail.com
Postgres defaults to chars when the client encoding is utf8.

On Mon, Aug 2, 2021, 11:46 Felipe Gasper <felipe@felipegasper.com> wrote:

>
>
> > On Aug 2, 2021, at 11:25 AM, Dan Book <grinnz@gmail.com> wrote:
> >
> > STDOUT and STDERR expect bytes unless one does "use open ':std', IO =>
> ':encoding(UTF-8)';" which changes the assumption of those interfaces so
> isn't great. DBI drivers, Mojolicious interfaces, etc expect characters.
>
> Of note: DBI drivers, by default, seem more predominantly to expect
> *bytes*, not characters. At least, SQLite, MySQL, and PostgreSQL do.
>
> -F
>
>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About