Hi,

I am printing string values with something like

  sprintf("%-20.20s %-20.20s",a,b)

where a is an utf8 string value.

Unfortunately the values of b are not aligned in a column, because
the length function for %s counts bytes and not characters. If 
a contains any non-ASCII character which is more than a single
character in utf8, the column width is calculated wrong.


What would I do?

regards
Hadmut