Despite your registration name your code looks very wrong for me. I strongly
assume that pairs iterates over bytes, not over runes. Inspect the runes module
and maybe try something like:
import unicode
var str = "\u5f7c\u884c\u3067"
#for key, value in pairs(str):
for r in runes(str):
#echo runeAt(str, key)
echo r
Run
- Odd behavior with pairs on string and runeAt TotalKnowledge
- Re: Odd behavior with pairs on string and runeAt Stefan_Salewski
- Re: Odd behavior with pairs on string and runeAt TotalKnowledge
- Re: Odd behavior with pairs on string and run... lqdev
- Re: Odd behavior with pairs on string and... Stefan_Salewski
- Re: Odd behavior with pairs on strin... Araq
- Re: Odd behavior with pairs on s... TotalKnowledge
- Re: Odd behavior with pairs ... Stefan_Salewski
- Re: Odd behavior with pairs ... kobi
- Re: Odd behavior with pairs ... cdunn2001
