local str = "KORYTNAČKA" for c in str:gmatch("[\\0-\127\194-\244][\128-\191]*") do print(c) end