0

when i copy and paste text from a webpage to a txt file and have perl open it, i get these strange boxes where there should be spaces. how do i use perl to replace them?

2
Contributors
7
Replies
9
Views
4 Years
Discussion Span
Last Post by 2teez
0

Hi Wade_1,

How are you reading the text file from with your Perl script?

What are the text copied into the text file? Obviously, these will be a UTF8 charater set issue.

Moreover, you don't need to copy from a webpage into a text file, before opening and reading the text file with a Perl Script. You can read straight using perl module like LWP::Simple and others.

We might be able to help if you could give more details of your data, and expected data.

Thanks

0

I have my cgi and perl files at TRIPOD.com and they don't allow LWP::
so i copy the webpage source (what i thought was wordpad) and paste it to a text file to use the data.

0

that got rid of those boxes for me - now i just need to keep numbers also.

0

SOLVED - thanks so much for putting me on the right track 2Teez!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.