Dave Angel writes:
> But I wanted to comment on the (c) remark. If you're in the US,
> that's the wrong abbreviation for copyright. The only recognized
> abbreviation is (copr).
More reading on this:
http://en.wikipedia.org/wiki/Universal_Copyright_Convention>
http://en.wikipedia.org/
Robert Dailey wrote:
Hello,
I'm loading a file via open() in Python 3.1 and I'm getting the
following error when I try to print the contents of the file that I
obtained through a call to read():
UnicodeEncodeError: 'charmap' codec can't encode character '\xa9' in
position 1650: character maps t
On Thu, Aug 6, 2009 at 12:41 PM, Robert Dailey wrote:
> On Aug 6, 11:31 am, "Richard Brodie" wrote:
>> "Robert Dailey" wrote in message
>>
>> news:29ab0981-b95d-4435-91bd-a7a520419...@b15g2000yqd.googlegroups.com...
>>
>> > UnicodeEncodeError: 'charmap' codec can't encode character '\xa9' in
>> >
On Aug 6, 2009, at 3:14 PM, Martin v. Löwis wrote:
As a side note, you should probably use something other than "file"
for
the parameter name in GetFileContentsAsString() since file() is a
Python
function.
Python 3.1.1a0 (py3k:74094, Jul 19 2009, 13:39:42)
[GCC 4.3.3] on linux2
Type "help
> As a side note, you should probably use something other than "file" for
> the parameter name in GetFileContentsAsString() since file() is a Python
> function.
Python 3.1.1a0 (py3k:74094, Jul 19 2009, 13:39:42)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more inform
On Thu, 06 Aug 2009 09:14:08 -0700, Robert Dailey wrote:
> I'm loading a file via open() in Python 3.1 and I'm getting the
> following error when I try to print the contents of the file that I
> obtained through a call to read():
>
> UnicodeEncodeError: 'charmap' codec can't encode character '\xa
"Robert Dailey" wrote in message
news:f64f9830-c416-41b1-a510-c1e486271...@g19g2000vbi.googlegroups.com...
> As you can see, I am trying to load the file with encoding 'cp1252'
> which, according to the python 3.1 docs, translates to windows-1252. I
> also tried 'latin_1', which translates to I
On Aug 6, 2009, at 12:41 PM, Robert Dailey wrote:
On Aug 6, 11:31 am, "Richard Brodie" wrote:
"Robert Dailey" wrote in message
news:29ab0981-b95d-4435-91bd-a7a520419...@b15g2000yqd.googlegroups.com
...
UnicodeEncodeError: 'charmap' codec can't encode character '\xa9' in
position 1650: c
On Thu, 2009-08-06 at 09:14 -0700, Robert Dailey wrote:
> Hello,
>
> I'm loading a file via open() in Python 3.1 and I'm getting the
> following error when I try to print the contents of the file that I
> obtained through a call to read():
>
> UnicodeEncodeError: 'charmap' codec can't encode char
On Aug 6, 11:31 am, "Richard Brodie" wrote:
> "Robert Dailey" wrote in message
>
> news:29ab0981-b95d-4435-91bd-a7a520419...@b15g2000yqd.googlegroups.com...
>
> > UnicodeEncodeError: 'charmap' codec can't encode character '\xa9' in
> > position 1650: character maps to
>
> > The file is defined a
"Robert Dailey" wrote in message
news:29ab0981-b95d-4435-91bd-a7a520419...@b15g2000yqd.googlegroups.com...
> UnicodeEncodeError: 'charmap' codec can't encode character '\xa9' in
> position 1650: character maps to
>
> The file is defined as ASCII.
That's the problem: ASCII is a seven bit code.
On Aug 6, 2009, at 12:14 PM, Robert Dailey wrote:
Hello,
I'm loading a file via open() in Python 3.1 and I'm getting the
following error when I try to print the contents of the file that I
obtained through a call to read():
UnicodeEncodeError: 'charmap' codec can't encode character '\xa9' in
Hello,
I'm loading a file via open() in Python 3.1 and I'm getting the
following error when I try to print the contents of the file that I
obtained through a call to read():
UnicodeEncodeError: 'charmap' codec can't encode character '\xa9' in
position 1650: character maps to
The file is defined
13 matches
Mail list logo