[Py-MAD] Una duda de encodings

Andrey Antukh niwi at niwi.be
Tue Jun 3 10:48:49 CEST 2014


En realidad si puede depender, puedes bajarte source de python y compilar e
instalarlo en la home del usuario sin tocar el sistema. :P


2014-06-03 10:45 GMT+02:00 Pablo <legendario82 at gmail.com>:

> Gracias por la respuesta. Ya sabes que en servers de producción la versión
> de las cosas no depende de uno... De momento he cambiado el check por otra
> cosa, pero seguiré mirando a ver si doy con una solución buena bonita y
> barata.
>
> Un saludo
>
>
> 2014-06-03 10:42 GMT+02:00 Carlos Hernando Carasol <
> carlos.hernando at gmail.com>:
>
>> Hola Pablo,
>>
>> Creo que es política de la lista que hagas este tipo de consultas en
>> https://mail.python.org/mailman/listinfo/python-es
>> pero bueno...
>>
>> 2014-06-03 9:11 GMT+02:00 Pablo <legendario82 at gmail.com>:
>>
>> except AssertionError as e: self.verificationErrors.append(str(e))
>>> UnicodeEncodeError: 'ascii' codec can't encode character u'\xfa' in
>>> position 124: ordinal not in range(128)
>>>
>>
>> >>> s = u" última hora."
>> >>> s
>> u' \xfaltima hora.'
>> >>> str(s)
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>> UnicodeEncodeError: 'ascii' codec can't encode character u'\xfa' in
>> position 1: ordinal not in range(128)
>> >>> unicode(s)
>> u' \xfaltima hora.'
>>
>> A str no le gustan los unicode (pásate a Python 3 ;) ). Revisa Python
>> Unicode Howto.
>>
>> Saludos,
>>
>>
>> Carlos.
>> --
>> @chernando
>> http://www.linkedin.com/in/chernando
>>
>> _______________________________________________
>> Madrid mailing list
>> Madrid at lists.es.python.org
>> https://lists.es.python.org/listinfo/madrid
>>
>
>
>
> --
> --
>
> Pablo Paso Diges
> ========================
> http://es.linkedin.com/pub/pablo-paso-diges/1a/396/6b
>
>  --
>
> No trees were killed in the creation of this message. However, many
> electrons were terrible inconvenienced.
>
> _______________________________________________
> Madrid mailing list
> Madrid at lists.es.python.org
> https://lists.es.python.org/listinfo/madrid
>



-- 
Andrey Antukh - Андрей Антух - <andrei.antoukh at kaleidos.net> / <niwi at niwi.be
>
http://www.niwi.be <http://www.niwi.be/page/about/>
https://github.com/niwibe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.es.python.org/pipermail/madrid/attachments/20140603/d3e4cde6/attachment-0001.html>


More information about the Madrid mailing list