I am trying to preserve the unicode in dict here is the string looks like:
password = r"abc\3]xyz"
print(password)
output:
abc\3]xyz
But when I use the same variable in dict it's adding an escape character:
id_pass = { "id" : "username", "password" : password }
print(id_pass)
output:
{ u'id' : u'username', u'password' : u'abc\\3]xyz"' }
Expected:
{ u'id' : u'username', u'password' : u'abc\3]xyz"' }
I am not able to figure out a way.