[Python-es] Post: problemas con un string

Manuel A. Estevez Fernandez stvzito en gmail.com
Jue Mayo 30 20:17:16 CEST 2013


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.gamez en 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 en python.org
> http://mail.python.org/mailman/listinfo/python-es
> FAQ: http://python-es-faq.wikidot.com/
>
>
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://mail.python.org/pipermail/python-es/attachments/20130530/8db04a41/attachment.html>


Más información sobre la lista de distribución Python-es