I am trying to call Python\'s time.strftime() function using a Unicode format string:
time.strftime()
u\'%d\\u200f/%m\\u200f/%Y %H:%M:%S\'
(\\
Many standard library functions still don't support Unicode the way they should. You can use this workaround:
import time my_format = u'%d\u200f/%m\u200f/%Y %H:%M:%S' my_time = time.localtime() time.strftime(my_format.encode('utf-8'), my_time).decode('utf-8')