/convert-an-already-encoded-string-to-bytes

A function that converts an already encoded string into bytes without double encoding it.

Primary LanguagePython

convert-an-already-encoded-string-to-bytes

A function that converts an already encoded string into bytes without double encoding it.

This function takes as input a string encoded in utf-8, that's why it first removes the first 2 and the last characters.