local str = "KORYTNAČKA" for c in str:gmatch("[\x0-\x7F\xC2-\xF4][\x80-\xBF]*") do print(c) end