1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

Remove mention of now-deprecated “sqlite_unicode” parameter.

This commit is contained in:
Felipe Gasper 2021-08-02 20:49:33 -04:00
parent 87e1545ccb
commit ab0022890a

View file

@ -2589,18 +2589,17 @@ or
=head2 Unicode handling =head2 Unicode handling
If the attribute C<< $dbh->{sqlite_unicode} >> is set, strings coming from Depending on the C<< $dbh->{sqlite_string_mode} >> value, strings coming
the database and passed to the collation function will be properly from the database and passed to the collation function may be decoded as
tagged with the utf8 flag; but this only works if the UTF-8. This only works, though, if the C<sqlite_string_mode> attribute is
C<sqlite_unicode> attribute is set B<before> the first call to set B<before> the first call to a perl collation sequence. The recommended
a perl collation sequence . The recommended way to activate unicode way to activate unicode is to set C<sqlite_string_mode> at connection time:
is to set the parameter at connection time :
my $dbh = DBI->connect( my $dbh = DBI->connect(
"dbi:SQLite:dbname=foo", "", "", "dbi:SQLite:dbname=foo", "", "",
{ {
RaiseError => 1, RaiseError => 1,
sqlite_unicode => 1, sqlite_string_mode => DBD_SQLITE_STRING_MODE_UNICODE_STRICT,
} }
); );