Django when i send the following string from an ajax submit i get the following string in unicode.How to decode this
$.post("/records/save_t/",snddata,
function(data){
if(data == 0 ){
}
},"json");
In django
def save_t(request):
if request.method == 'GET':
qd = request.GET
elif request.method == 'POST':
qd = request.POST
map_str = qd.getlist('map_str')
logging.debug(map_str)
Output is [u'##1##@1//##2##@1//']
. How can I convert this to a string? str(map_str)
did not work.
Also how to get the values in the pattern
str = map_str.split("//")
for s in map_str.split("//"):
...
...