Open huyx opened 8 years ago
This sounds indeed like a bug.
I cannot find any reference in the Redis documentation regarding the encoding of Lua scripts. (The Redis protocol itself is pure binary and in general encoding-agnostic.) But utf-8 is a superset of ascii, and if it works like this, I think probably fix it that way.
Hi @huyx, this has been fixed in the following commit: https://github.com/jonathanslenders/asyncio-redis/commit/004810da8300d21c07e6e853959802ce7aab1ef0
Thanks for reporting!
There some non-ascii chars in my script, when call register_script, it raises UnicodeEncodeError:
I found the code cause this:
If I changed 'ascii' to 'utf-8', it works fine.
I think it is a bug. thanks.