I have the following string:
teststring= "§"
When I print it in python within Django I keep getting a weird symbol. How do I make it so that it eliminates the conversion of a string to ASCII symbol and treats it as the literal string “§”
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your browser is interpreting the
§value as§, the section character: §You need to escape the ampersand as
&sectto prevent this:Django templates can do this escaping for you by using the escape filter, or you can use the
cgi.escape()function: