473,402 Members | 2,072 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,402 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 1649
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.