473,390 Members | 1,413 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,390 software developers and data experts.

"=20" getting appended to each line of a text file when downloaded from a pop server.

Hi all,

I am working on windows 2000 and using php 5.0 and apache 2.0.59.
I am facing a problem while parsing a text file.Actually I am using a pop server for parsing an email.I am downloading new mails from that server using php and parsing the attachments.I want to parse text files as well. BUt when i save the attached .txt file on my machine, "=20" gets appended at the end of every line.

If the file is an xml file, sometimes "=90" gets appended. I can't figure out as why is this happening and how to rectify it.

waiting for your valuable replies,

thanks.
Nov 2 '06 #1
4 1648
vssp
268 100+
Hi friend

Sorry I am not clear what u wwant ? Plase can u explne the issue briefly

Thansk
Vssp
Nov 2 '06 #2
Hi friend

Sorry I am not clear what u wwant ? Plase can u explne the issue briefly

Thansk
Vssp
Hey, thanks for such a quick reply,

I am writing an api for e-mail parsing which extracts the mails from the email server and parses the attachments if any,and save the data from those attchments.in db.

Now when the attachment is a .txt file,and when i save it , "=20" gets automatically appended to each line.plz see below,

this is the original content of the text file which was attached to the mail(by myself for testing purpose).


Lead ID: 13343161
Name: CATHE SOMMERVILLE
Address: 1755 ORINDA COURT
THOUSAND OAKS, CA 91362
Home Phone: (805) 241-4032
Email: CATHESOMMERVILLE@YAHOO.COM
Best Contact Time: EVENING AT HOME
Home Owner: YES
Credit Rating: POOR
LTV: 1.000000
Loan Amount: $270,000.00
Purpose: REFINANCE
Property Value: $270,000.00
Property Type: CONDO
Mortgages Total: $270,000.00
Mortgage1 Bal: $270,000.00
Mortgage1 Rate: 4.000%


and now look at what it looks like when it is saved on the hard disk from the incoming mail.


Lead ID: 13343161=20
Name: CATHE SOMMERVILLE=20
Address: 1755 ORINDA COURT=20
THOUSAND OAKS, CA 91362=20
Home Phone: (805) 241-4032=20
Email: CATHESOMMERVILLE@YAHOO.COM=20
Best Contact Time: EVENING AT HOME=20
Home Owner: YES=20
Credit Rating: POOR=20
LTV: 1.000000=20
Loan Amount: $270,000.00=20
Purpose: REFINANCE=20
Property Value: $270,000.00=20
Property Type: CONDO=20
Mortgages Total: $270,000.00=20
Mortgage1 Bal: $270,000.00=20
Mortgage1 Rate: 4.000%=20


I don't know where this =20 is coming from and how to rectfy it.
Nov 2 '06 #3
cassbiz
202 100+
Can we see the code that generates the error?


Hey, thanks for such a quick reply,

I am writing an api for e-mail parsing which extracts the mails from the email server and parses the attachments if any,and save the data from those attchments.in db.

Now when the attachment is a .txt file,and when i save it , "=20" gets automatically appended to each line.plz see below,

this is the original content of the text file which was attached to the mail(by myself for testing purpose).


Lead ID: 13343161
Name: CATHE SOMMERVILLE
Address: 1755 ORINDA COURT
THOUSAND OAKS, CA 91362
Home Phone: (805) 241-4032
Email: CATHESOMMERVILLE@YAHOO.COM
Best Contact Time: EVENING AT HOME
Home Owner: YES
Credit Rating: POOR
LTV: 1.000000
Loan Amount: $270,000.00
Purpose: REFINANCE
Property Value: $270,000.00
Property Type: CONDO
Mortgages Total: $270,000.00
Mortgage1 Bal: $270,000.00
Mortgage1 Rate: 4.000%


and now look at what it looks like when it is saved on the hard disk from the incoming mail.


Lead ID: 13343161=20
Name: CATHE SOMMERVILLE=20
Address: 1755 ORINDA COURT=20
THOUSAND OAKS, CA 91362=20
Home Phone: (805) 241-4032=20
Email: CATHESOMMERVILLE@YAHOO.COM=20
Best Contact Time: EVENING AT HOME=20
Home Owner: YES=20
Credit Rating: POOR=20
LTV: 1.000000=20
Loan Amount: $270,000.00=20
Purpose: REFINANCE=20
Property Value: $270,000.00=20
Property Type: CONDO=20
Mortgages Total: $270,000.00=20
Mortgage1 Bal: $270,000.00=20
Mortgage1 Rate: 4.000%=20


I don't know where this =20 is coming from and how to rectfy it.
Nov 2 '06 #4
cassbiz
202 100+
You can try using 'rtrim'

Here is a link that may help you http://us2.php.net/rtrim
Nov 3 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: barb28 | last post by:
Hello, sometimes I have noticed that in web addresses, the number: 20% will show up in the address. I think this is somehow related to a 'blank space', but am unsure, does anyone know about...
1
by: Mark Sandfox | last post by:
Is there a way to restrict the user to only selecting and sending either a ..gif or .jpg. Everything I have read says this option can not be done by design (security reasons). I find that irronic...
5
by: Andrew | last post by:
Hi all, I am still getting into ASP/VB.net and have a concern about something I see coming. Currently our entire website is classic ASP, yet the feelings from on high is that we need to start...
1
by: TJ | last post by:
Hello all, I'm having a weird error. I'm getting error CS1513 on Line 36. It appears when I comment out this line, it compiles just fine but doesn't do what I want, which is run the code in the...
7
by: Stimp | last post by:
I want to output a number, say 20, as 20.00 i.e. I want to always have 2 decimal places I don't want any currency information, therefore String.Format("{0:c}") doesn't work for me. Can't...
17
by: pbd22 | last post by:
Hi. How does one return a range of rows. I know that "Top 5" will return rows 0 - 5 but, how do I get 6 - 10? thanks
4
by: stevong | last post by:
Hi everyone, I have a mailing list generated from php and sent out by mail(). But i often have broken graphics due to the fact that it randomly appends %20 to the html output! Anybody has...
4
by: knkk | last post by:
I have style definitions that look like this: .a10b, .a10b a:link, .a10b a:visited, .a10b a:hover { font: 10px Arial; color: #000000;
1
by: reeferz | last post by:
hi all, i created the most basic webservice the one that vs 2005 creates for u with the hello world method, and decided to post it onto my website.... however i keep getting this error : ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.