Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1154

Python CGI - UTF-8 doesn't work

$
0
0

For HTML5 and Python CGI:

If I write UTF-8 Meta Tag, my code doesn't work. If I don't write, it works.

Page encoding is UTF-8.

print("Content-type:text/html")print()print("""<!doctype html><html><head><meta charset="UTF-8"></head><body>şöğıçü</body></html>""")

This codes doesn't work.

print("Content-type:text/html")    print()    print("""<!doctype html><html><head></head><body>şöğıçü</body></html>""")

But this codes works.


Viewing all articles
Browse latest Browse all 1154

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>