How to get first letter of UTF-8 string?
I try with :
item.name.slice(0…0) – works ok when first letter is regular ascii
character, don’t works for local Croatian characters: “©ÐÈÆ®¹ðèæ¾”
item.name.slice(0…1) – this works ok for items starting with Croatian
character but returns two letters for other items
Is there slice version (or something like that) which works with
characters not bytes.