On Wednesday 08 June 2016 07:24 PM, Alex Hall wrote:
All,
I'm working on a project that writes CSV files, and I have to get it done
very soon. I've done this before, but I'm suddenly hitting a problem with
unicode conversions. I'm trying to write data, but getting the standard
cannot encode cha
Thanks for all the responses, everyone, what you all said makes sense. I
also understand what you mean by the tone of an "urgent" message coming
across as demanding.
On Wed, Jun 8, 2016 at 1:19 PM, Tim Golden wrote:
> On 08/06/2016 14:54, Alex Hall wrote:
> > All,
> > I'm working on a project th
> Date: Thu, 9 Jun 2016 03:57:21 +1000
> From: st...@pearwood.info
> To: tutor@python.org
> Subject: Re: [Tutor] Urgent: unicode problems writing CSV file
>
> On Wed, Jun 08, 2016 at 01:18:11PM -0400, Alex Hall wrote:
>>
>> csvWriter.writerow([info.encode("
Alex Hall wrote:
> The type of the 'info' variable can vary, as I'm pulling it from a
> database with Pyodbc. I eventually found something that works, though I'm
> not fully sure why or how.
As Tim says, the csv.writer in Python 2 applies str() to every value.
If that value is a unicode instanc
On Wed, Jun 08, 2016 at 01:18:11PM -0400, Alex Hall wrote:
> I never knew that specifying a question is related to a time-sensitive
> project is considered impolite. My apologies.
Your urgency is not our urgency. We're volunteers offerring our time and
experience for free. Whether you intended it
On Wed, Jun 8, 2016 at 12:53 PM Alex Hall wrote:
> All,
> I'm working on a project that writes CSV files, and I have to get it done
> very soon. I've done this before, but I'm suddenly hitting a problem with
> unicode conversions. I'm trying to write data, but getting the standard
> cannot encode
I never knew that specifying a question is related to a time-sensitive
project is considered impolite. My apologies.
The type of the 'info' variable can vary, as I'm pulling it from a
database with Pyodbc. I eventually found something that works, though I'm
not fully sure why or how.
csvWriter
On Wed, Jun 08, 2016 at 09:54:23AM -0400, Alex Hall wrote:
> All,
> I'm working on a project that writes CSV files, and I have to get it done
> very soon. I've done this before, but I'm suddenly hitting a problem with
> unicode conversions. I'm trying to write data, but getting the standard
> canno
On 08/06/2016 14:54, Alex Hall wrote:
> All,
> I'm working on a project that writes CSV files, and I have to get it done
> very soon. I've done this before, but I'm suddenly hitting a problem with
> unicode conversions. I'm trying to write data, but getting the standard
> cannot encode character: o
On Wed, Jun 8, 2016 at 1:08 PM, Peter Otten <__pete...@web.de> wrote:
> Alex Hall wrote:
>
> Marking your posts is generally considered impolite and will not help you
> get answers sooner than without it.
>
>> I'm working on a project that writes CSV files, and I have to get it done
>> very soon. I
Alex Hall wrote:
Marking your posts is generally considered impolite and will not help you
get answers sooner than without it.
> I'm working on a project that writes CSV files, and I have to get it done
> very soon. I've done this before, but I'm suddenly hitting a problem with
> unicode convers
All,
I'm working on a project that writes CSV files, and I have to get it done
very soon. I've done this before, but I'm suddenly hitting a problem with
unicode conversions. I'm trying to write data, but getting the standard
cannot encode character: ordinal not in range(128)
I've tried
str(info).e
12 matches
Mail list logo