Hey guys,
I have string like this "b'asdfasf'" I want to convert that byte which means that I need output as b'asdfasf'. To give some context, I have a CharField which should store encrypted string which is a byte string, so while saving, it is converting into string like above. But, when I retrieve it, I want the byte part to decode.
No responses yet.