3 ms·
Also it's trivial to get the number of bytes in Python if that's what is wanted: len(bytes(" ", "utf8")) == 17 This is really the only sane way and makes
by globular-toast 3y ago
Also it's trivial to get the number of bytes in Python if that's what is wanted:
len(bytes(" ", "utf8")) == 17
This is really the only sane way and makes it explicit which encoding you are using.