> re:Have you got the hex code for that one?  I presume this is the only
> > character causing difficulty - hence we really want to avoid turning
> > the whole string into hex numbers - which are harder to process.
> 
> $values = unpack('H*',"$file");
> 
> output for the  entity â~@¢
> 
> HEX: e280a20a

Okay, don't use 'tr' - the bullet has been multibyte encoded, and I'm
not sure if it'll work if you map 4 bytes onto 1 byte.

This *should* work:

s/\xe2\x80\xa2\x0a/*/g; # /g replaces globally in the string

If you need something more specific (i.e. you don't know how to
proceed) then please post an attachment with the textfile.  Hopefully
the mail program doesn't trim off attachments ;-)  Keep it under 5k
though.

Until next time... take care,

Jonathan Paton

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to