How convert u'[<Car: { surname :yass name : zazadz } >]
in [<Car: { surname :yass name : zazadz } >]
.
So how convert unicode in django.db.models.query.QuerySet
?
How convert u'[<Car: { surname :yass name : zazadz } >]
in [<Car: { surname :yass name : zazadz } >]
.
So how convert unicode in django.db.models.query.QuerySet
?
This is the function I wrote to convert unicode into string which i then process according to my need. _in_unicode is the parameter passed to this function, which takes an input of type unicode.
def unicode_to_string(_in_unicode):
return unicodedata.normalize('NFKD', _in_unicode).encode('ascii', 'ignore')
You will have to write a parser to process that string and then convert it into proper format for data processing.
P.S: If you are downvoting, please add comment for the reason.