Prueba con

import urllib
urllib.unquote(fecha)
'30/05/2013+00:00:00'

by:

ISC. Manuel Alejandro Estévez Fernández



El 30 de mayo de 2013 13:00, Diego Uribe Gamez
<diego.uribe.ga...@gmail.com>escribió:

> estoy enviando un string al servidor por Post pero cuando llega me sale
> mal escrita, como la arreglo usando python?
>
> fecha = '30%2F05%2F2013+00%3A00%3A00'
>
> intente hacer replace pero no funciona:
>
> fecha.replace('%2F','/')
>
> la idea es que quede así: '30/05/2013 00:00:00'
>
> --
>   *Diego Alonso Uribe Gamez*
> ------------------------------
>
> *Desarrollador web*
>
> Twitter: @DiegoUG <http://www.twitter.com/DiegoUG>
>
> Google+: http://gplus.to/diegoug
> ------------------------------
>
>
> _______________________________________________
> Python-es mailing list
> Python-es@python.org
> http://mail.python.org/mailman/listinfo/python-es
> FAQ: http://python-es-faq.wikidot.com/
>
>
_______________________________________________
Python-es mailing list
Python-es@python.org
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

Responder a