Eliminación de caracteres similares a unicode u2026 en una cadena en python2. 7
Tengo una cadena en python2. 7 como esta,
This is some \u03c0 text that has to be cleaned\u2026! it\u0027s annoying!
¿Cómo lo convierto a esto,
This is some text that has to be cleaned! its annoying!
35
Author: Sandeep Raju Prabhakar, 2013-03-10
1 answers
>>> s
'This is some \\u03c0 text that has to be cleaned\\u2026! it\\u0027s annoying!'
>>> print(s.decode('unicode_escape').encode('ascii','ignore'))
This is some text that has to be cleaned! it's annoying!
79
Author: Burhan Khalid,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-03-10 10:26:21
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-03-10 10:26:21