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

Re: Malformed UTF-8 character

by Realbot (Scribe)
on Mar 14, 2006 at 14:14 UTC ( #536581=note: print w/replies, xml ) Need Help??


in reply to Malformed UTF-8 character

You probably have some strings with high-bits set in them. Find out what their encoding is and then apply
use Encode; my $perl_string = decode(<encoding>, $original_string);
where <encoding> can be "iso-8859-1", "utf8" of one of the other encodings available...see Encode help.
Then you can apply s//

Regards.

Replies are listed 'Best First'.
Re^2: Malformed UTF-8 character
by jeanluca (Deacon) on Mar 14, 2006 at 14:58 UTC
    OK, thanks. Do you know some ulrs where I can read more about this (iso-88..., utf8) so I will get a better understing of what it means ?

    Luca

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2022-12-08 03:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?