Get the visual width of a string - the number of columns required to display it
Get the visual width of the widest line in a string - the number of columns required to display it
Determine the East Asian Width of a Unicode character
Convert and detect character encoding in JavaScript