Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Malformed UTF-8 character

by ikegami (Patriarch)
on Nov 30, 2022 at 14:08 UTC ( [id://11148459]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ not_utf8="$( printf "\x96" )"
    
    $ perl -e"use utf8; q{$not_utf8}"
    Malformed UTF-8 character: \x96 (unexpected continuation byte 0x96, wi
    +th no preceding start byte) at -e line 1.
    Malformed UTF-8 character (fatal) at -e line 1.
    
  2. or download this
    $ printf "\x96" | perl -nle'
       use open ":std", ":utf8";
    ...
    '
    Malformed UTF-8 character: \x96 (unexpected continuation byte 0x96, wi
    +th no preceding start byte) in printf at -e line 1, <> line 1.
    0
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-24 01:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found