Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Different presentation by SQLite

by Corion (Patriarch)
on Jul 13, 2024 at 06:40 UTC ( [id://11160572]=note: print w/replies, xml ) Need Help??


in reply to Different presentation by SQLite

You don't show us what Perl code you used to insert the degree sign into the database. Most likely this brings us back to your original thread, in which some questions to your code are still open.

My personal recommendation is to avoid Unicode / non-ascii in your source code and use the \N{} notation:

use charnames ':full'; my $fahrenheit = "\N{DEGREE SIGN}F"; # ... use $fahrenheit where you otherwise would type °F

The difference between SQLite Expert, Perl and the console output still comes out to that the strings you display with  are undecoded UTF-8 strings. This can have multiple causes, as discussed in SQLite returns funny characters.

If you have mixed string in your table, you will have to run an UPDATE SQL command to fix your database. But before you do that, make sure that your code is consistent.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2024-09-09 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    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.