peterp / react-native-tags

Tag input component for React Native
MIT License
288 stars 75 forks source link

Typing tags doesn't support multibyte characters #34

Closed uguptu closed 5 years ago

uguptu commented 5 years ago

When one types something not entirely ASCII as a tag content, for example "göteborg", the component distorts multibyte characters and enters "g;teborg" instead. I think it's due to the fact you're using slice() rather than substr() when working with strings internally. I am pretty sure same result will be seen when entering tags in Chinese or Russian, for instance.

uguptu commented 5 years ago

Actually, never mind, it was my fault, I was using a wrong keyboard layout in the RN emulator.