Created
October 4, 2018 05:17
-
-
Save smrati/85dc3814b7b9c75bae8098a14ce1a2c3 to your computer and use it in GitHub Desktop.
Django smart string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.utils.encoding import smart_str, smart_unicode | |
a = u'\xa1' | |
print smart_str(a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment