Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Encode text to XML €

by hiseldl (Priest)
on Sep 27, 2002 at 15:22 UTC ( [id://201230]=note: print w/replies, xml ) Need Help??


in reply to Encode text to XML €

Using an encoder such as MIME::Base64 might work better. For example:
use MIME::Base64; $weird = chr(0x2a); $encoded = encode_base64($weird); #$decoded = decode_base64($encoded); $string = "Weird char: $encoded.\n";

This is also easier to read and more flexible than a regexp. :)

--
hiseldl
What time is it? It's Camel Time!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-03-28 08:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found