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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

\x92 x\93 chars

Status
Not open for further replies.

jriggs420

Programmer
Sep 30, 2005
116
US
Whenever I ftp a file into vi, I get these characters in the file. It's strange since copy/pasting doesn't show them, but rather the ' or " as appropriate. I would prefer to use ftp though, as it is much faster/cleaner.

So my question is other than doing a bunch of s/x\\92/\'/;(which I have yet to get working), is there a way to convert these automatically. I have tried tweaking the ftp client (ascii/binary) settings, and the original document (word) font settings with no success. Any suggestions?
TIA-

Joe

A clever person solves a problem.
A wise person avoids it.

-- Einstein
 
$file=~ s/x\\92/\'/g;

The /g modifier will replace all instead of the next occurrence

HTH

Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Yes, but when I look at the file in vi. I see "Don\x92t know", where it should be "Don't know". If I set it equal to a string and print with a perl script, I get "Don t know", which leads me to believe perl isn't even seeing these chars. does that make sense?

A clever person solves a problem.
A wise person avoids it.

-- Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top