If your wc implementation has the -L option, that means counting the correct βthingβ. (Coreutils has this, not sure what others are doing.)
Example:
$ getw() { wc -L <<< "$1"; } $ getw εε4 $ getw εaεc 6 $ getw abcεε7 $ getw "θ‘δΉ¦ / θ‘ζΈ" 11
source share