Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Howto: Remove the 240 character in a file

Status
Not open for further replies.

thenewa2x

Programmer
Dec 10, 2002
349
US
Okay, I have a file with a strange Windows character. In Linux when I [tt]od -x -v -c[/tt] the file, i see this number in lots of spots. How do I get rid of it? The file is a Linux text-file (I used "vi").

---------------------------------------
If you helped... thx.
 
$string = "we want to remove ? from this text";
print "before: $string\n";
$string =~ s/\xf0//g;
print " after: $string\n";


Kind Regards
Duncan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top