I have a method which prints "header text" for command line programs, much like the syntax of Markdown:
1. =======================
2. This is a header string
3. =======================
This method takes a char c for lines 1 and 3 and repeats it n times based on the length of s.
String.length() works fine with the English alphabet, but how can I find the length (the visual length, that is) of a string containing foreign multibyte characters like "Å" and "Ç"?