Serving UTF-8 static files? Headers to the rescue (an epic tutorial)!
Briefly

"Determined as ever, homer8bc doesn't give up. After searching through our documentation, he discovers the solution: using PythonAnywhere's API to add static headers to the requests for his poem to specify that the text should be rendered as UTF-8!"
"He first goes to the Account page and clicks the 'API Token' tab to create an API token. Then, for the sake of clarity, he adds another static file mapping - from /story-with-headers.txt to the same story.txt file."
"Next, homer8bc starts a fresh Python console (so that the API_TOKEN environment variable is available) and runs the code needed to grab api_token from the environment and send a POST request to the /static_headers/ API endpoint for his domain."
"The key part is in the data of the request: the url specifies the static URL defined into which the headers will be applied, ensuring that S. Yodos finally sees the poem as intended."
Read at Pythonanywhere
[
]
[
|
]