[Python] Problema script python con ReportLab

Zanon Samuele webs86 a gmail.com
Sab 14 Giu 2008 09:29:28 CEST


ok... trovato l'errore era una lettera accentata che dava problemi. come
posso fargliela accettare dallo script?

2008/6/14 Carlo C8E Miron <miron a python.it>:

> Ciao Samuele,
>
> On Fri, Jun 13, 2008 at 22:43, Zanon Samuele <webs86 a gmail.com> wrote:
> > Ciao a tutti...
> > Ho fatto uno script per la creazione di un report con un elenco di
> contatti.
> > quando lo eseguo perņ mi da un errore:
> > Creazione Report
> > Traceback (most recent call last):
> [...]
> >   File "/usr/lib/python2.5/encodings/utf_8.py", line 16, in decode
> >     return codecs.utf_8_decode(input, errors, True)
> > UnicodeDecodeError: 'utf8' codec can't decode bytes in position 4-8:
> > unsupported Unicode code range
> >
> > lo script esegue una connessione ad un database per recuperare i dati e
> con
> > un ciclo for creo la tabella.
>
> Sembrerebbe che il tuo database non sia utf8, o contenga dati errati.
>
> > come posso risolvere il problema? in allegato vi metto lo script.
>
> Quale allegato? :)


scusate... mi ero dimenticato di metterlo.

>
>
> > ciao e grazie mille per l'aiuto.
>
> Ciao,
>
> (c)
> --
> Carlo C8E Miron
> Open Source Solution Architect
>
> <http://www.linkedin.com/in/carlomiron>
> <http://pycon.it/> <http://stacktrace.it/> <http://pydinner.org/>
> _______________________________________________
> Python mailing list
> Python a lists.python.it
> http://lists.python.it/mailman/listinfo/python
>



-- 
Zanon Samuele
mailto:webs86 a gmail.com
-------------- parte successiva --------------
Un allegato HTML č stato rimosso...
URL: http://lists.python.it/pipermail/python/attachments/20080614/e4b9978b/attachment.htm 


Maggiori informazioni sulla lista Python