Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: SQLite returns funny characters

by jmClifford (Acolyte)
on Jul 10, 2024 at 05:39 UTC ( [id://11160495]=note: print w/replies, xml ) Need Help??


in reply to Re: SQLite returns funny characters
in thread SQLite returns funny characters

Thanks to Choroba for the contained sample. My issue now is:

Can't continue after import errors "dbd_sqlite_string_mode" is not defined in %DBD::SQLite::Constants::EX +PORT_TAGS

I can assess SQLite DBs with other Perl files. Is this a case of updating to the latest ? I don't think I have ever "CSPAN"ed a DBD module onto my Win10 system.

Regards JC....

Replies are listed 'Best First'.
Re^3: SQLite returns funny characters
by choroba (Cardinal) on Jul 10, 2024 at 08:46 UTC
    What version of DBD::SQLite is installed?

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

      Hi. I just upgrade to version DBD::SQLite 1.74. I suspect it was not installed. However, the previous problem went away. The new problem is;

      $insert->execute(10, '°C'); $insert->execute(80, '°F'); with error messages for both lines UTF-8 "\xB0" does not map to Unicode

      The other (following) response with this thread by roho I suspect may be the answer here. I am unsure of how to implement his/her recommendation.

      Regards JC.....

        Did you save the source code using the UTF-8 encoding?

        map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11160495]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-09-18 14:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (25 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.