Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: convert utf8 to iso-8859-2 to octal code

by ikegami (Patriarch)
on Oct 24, 2011 at 21:54 UTC ( [id://933489]=note: print w/replies, xml ) Need Help??


in reply to convert utf8 to iso-8859-2 to octal code

Does this mean that it could not encode from a unicode - to the standard ascii -

It means the character does not exist in iso-8859-2. "-" does exist, so it's not what you actually had. Maybe it was "–" or "—" or one of the other various dashes.

You can have encode do something other than substitute with "?" by using its third parameter.

I think you would like to pass your text through Text::Unidecode before encoding it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2024-04-23 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found