On 5/20/07, Andreas Jung <lists@zopyx.com> wrote:
--On 20. Mai 2007 14:20:38 +0200 Einar Næss Jensen <einar.nass.jensen@gmail.com> wrote:
When I get errors like: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2940: ordinal not in range(128) how can I locate the character which causes the error? In particular: where is the position (2940 in the example)?
First you must provide the *full* traceback.
sorry....: Request URL http://localhost:10080/ordredfolder/einar.jensen/testview Exception Type UnicodeDecodeError Exception Value 'ascii' codec can't decode byte 0xc3 in position 2940: ordinal not in range(128) Traceback (innermost last): Module ZPublisher.Publish, line 114, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module Shared.DC.Scripts.Bindings, line 311, in __call__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module Products.PageTemplates.PageTemplateFile, line 110, in _exec Module Products.PageTemplates.PageTemplate, line 105, in pt_render <PageTemplateFile at /ordredfolder/einar.jensen/testview> Module StringIO, line 271, in getvalueUnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2940: ordinal not in range(128) -- -- Einar Næss Jensen http://einarblog.homemade.no/einarblog http://www.homemade.no tlf: +47 90990249 (\__/) (='.'=)This is Bunny. Copy and paste bunny into your (")_(")signature to help him gain world domination.