On 6/27/06, Mike Currie <[EMAIL PROTECTED]> wrote:
> Thanks for the thorough explanation.
>
> What I am doing is converting data for processing that will be tab (for
> columns) and newline (for row) delimited. Some of the data contains tabs
> and newlines so, I have to convert them to something e
On 28/06/2006 9:44 AM, Mike Currie wrote:
>
> What I am doing is converting data for processing that will be tab (for
> columns) and newline (for row) delimited. Some of the data contains tabs
> and newlines so, I have to convert them to something else so the file
> integrity is good.
>
> No
Thanks for the thorough explanation.
What I am doing is converting data for processing that will be tab (for
columns) and newline (for row) delimited. Some of the data contains tabs
and newlines so, I have to convert them to something else so the file
integrity is good.
Not my idea, I've bee
On 28/06/2006 7:46 AM, Mike Currie wrote:
> Can anyone explain why I'm getting an ascii encoding error when I'm trying
> to write out using a UTF-8 encoder?
>
f = codecs.open('foo.txt', 'wU', 'utf-8')
print filteredLine
> thisêhasêàtabsêandêlineàbreaks
f.write(filteredLine)
> Trac
Mike Currie wrote:
> Can anyone explain why I'm getting an ascii encoding error when I'm trying
> to write out using a UTF-8 encoder?
Please read the Python Unicode HOWTO.
http://www.amk.ca/python/howto/unicode
--
Robert Kern
"I have come to believe that the whole world is an enigma, a har
Can anyone explain why I'm getting an ascii encoding error when I'm trying
to write out using a UTF-8 encoder?
Thanks
Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> filterMap = {}
>>> for i