<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=066591215-22062006><FONT face=Arial color=#0000ff size=2>I have 
code that uses variables to hold escaped characters like "\n" or "\03". As long 
as the assignment is done within the code, like self.crChar = "\n", there is no 
problem. But When I try to read the same&nbsp;character string from a text file 
and assign it, the string is seen as just&nbsp;a string of 
characters&nbsp;instead of an escape sequence, and the program 
fails.</FONT></SPAN></DIV>
<DIV><SPAN class=066591215-22062006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=066591215-22062006><FONT face=Arial color=#0000ff size=2>I read 
the "parameter = value" pairs, like "crChar = \n",&nbsp;from an ASCII file and 
store them in a dictionary; "parameterDict[parameter] = value". Then I assign 
the value to the variable using "self.crChar = parameterDict["crChar"]. When I 
print "self.crChar", it displays "<A href="file://\\n">\\n</A>" and it doesn't 
behave like a carriage return.</FONT></SPAN></DIV>
<DIV><SPAN class=066591215-22062006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=066591215-22062006><FONT face=Arial color=#0000ff size=2>Can 
anyone guide me toward a resolution?</FONT></SPAN></DIV>
<DIV><SPAN class=066591215-22062006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV></BODY></HTML>