Niklas Bäckman <nikba...@gmail.com> wrote:
> Columns with special characters like ("å" "ä" "å") get too short widths when
> output.
> 
> I guess this is due to the shell not counting actual UTF8 *characters/code
> points* when calculating the widths, but instead only
> counting the plain bytes in the strings, so they will seem longer until they
> are actually printed to the console.

Note that counting codepoints, while it happens to help with your particular 
data, won't help in general. Consider combining diacritics: U+00E4 (small A 
with diaeresis) looks the same as U+0061 U+0308 (small letter A + combining 
diaeresis) when printed on the console.
-- 
Igor Tandetnik

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to