Jul-30-2018, 07:49 AM
I had a similar issue with printing filenames. I have some files with Chinese and other characters, which breaks the formatting.
To fit them in one line, I had to use wcwidth to get the real width of the Unicode chars.
Instead of using the
To fit them in one line, I had to use wcwidth to get the real width of the Unicode chars.
Instead of using the
len
function to get the width, I used wcwidth.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!