On Fri, 30 Nov 2007 11:12:17 -0800, "Jeffrey Harris"
<[EMAIL PROTECTED]> said:
You might consider:
>
> import codecs
> file = codecs.open(filename, "a", "utf-8")
>
> so you don't have to convert your unicode string-by-string.
>
Hi Jeffrey,
Okay, I'm stumped...Q. How does one force returns (carriage return+line
feed) when using this shortcut for codecs?
This doesn't seem to work for me:
file.write('-------------------------------------------\n')
file.write('%s\n' % item_title)
line2 = string_triageStatus.upper() + " " + string_date + "
" + item_dateSource + "\n"
file.write('%s\n' % line2)
file.write('%s\n\n' % item_body)
I get a "smoosh" (technical term) in my text file with no returns/line
feeds.
Thanks much, Andre
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev