Special Characters

Sick Monkey sickcodemonkey at gmail.com
Tue Feb 27 20:23:58 EST 2007


I have a quick question about handling values with special characters.

Lets say I have a file which contains:
==================================
   blah#blah
==================================
Here is what I have for my code:
   f6 = open(fileAttached)
   msInfo = f6.readlines(); f6.close()
   varName = msInfo[0]
   ....
   smtp.login(uname,varName)
   ...
==================================
I am trying to connect to a mailserver, and it keeps failing.  My guess is
that the "#" sign messing up.  Is there anyway to encode that character?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070227/da9db900/attachment.html>


More information about the Python-list mailing list