Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Perl and Postgresql: Invalid byte sequence for encoding "UTF8"

by Anonymous Monk
on Jun 17, 2009 at 12:04 UTC ( [id://772356]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl and Postgresql: Invalid byte sequence for encoding "UTF8"
in thread Perl and Postgresql: Invalid byte sequence for encoding "UTF8"

It is NOT the capitalization that is needed. Encode is case-insensitive for the encoding. It is the hyphen that makes the difference, see this example:
use Encode qw(resolve_alias); my @aliases = ('utf-8', 'UTF-8', 'utf8',); for my $alias ( @aliases ) { my $canonical_name = Encode::resolve_alias($alias); print "$alias \t has canonical name $canonical_name\n"; }
  • Comment on Re^3: Perl and Postgresql: Invalid byte sequence for encoding "UTF8"
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2025-05-24 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.