2👍
✅
unicode()
without an encoding argument tries to use ASCII to decode the given byte string, as a fail-safe default. unicode("şşşşüüüüççç")
can’t work as the string is not ASCII.
Use a unicode string literal:
print slugify(u"şşşşüüüüççç")
(and of course ensure that your text editor saves the script file using the UTF-8 encoding.)
Source:stackexchange.com