Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^3: A UTF8 round trip with MySQL

by Juerd (Abbot)
on Jun 13, 2007 at 20:45 UTC ( #621090=note: print w/replies, xml ) Need Help??

in reply to Re^2: A UTF8 round trip with MySQL
in thread A UTF8 round trip with MySQL

It seems at odds with the docs for the open function and perlopentut, both of which give examples using it

Ah, more documentation needs updates then! I'll look into it; thanks for the pointers.

binmode in perlfunc, in the current development tree, already has the following change:

-To mark FILEHANDLE as UTF-8, use C<:utf8>. +To mark FILEHANDLE as UTF-8, use C<:utf8>. This will fail on invalid +UTF-8 sequences; C<:encoding(UTF-8)> is a safer (but slightly less +efficient) choice.

Juerd # { site => '', do_not_use => 'spamtrap', perl6_server => 'feather' }

Replies are listed 'Best First'.
Re^4: A UTF8 round trip with MySQL
by Anonymous Monk on Jul 30, 2013 at 13:28 UTC
    I am not sure what could be safer than failing on invalid data - if invalid data is encountered, failing would be better than e.g. guessing and silently corrupting data.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2018-09-23 14:29 GMT
Find Nodes?
    Voting Booth?
    Eventually, "covfefe" will come to mean:

    Results (191 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!