elias_naur
unread,Sep 9, 2010, 8:31:36 AM9/9/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google App Engine
Hi,
It seems that both the development server and the production servers
by default serves static html files with the "Content-type:text/html"
response header. That's fine, except that I'd like a "charset = utf-8"
appended to that. The relevant app.yaml entry looks like this:
- url: /
static_files: index.html
upload: index.html
it's possible to include the encoding in the html headers with a
"Content-Type" meta tag, but I'd like to specify the utf-8 encoding
globally, without worrying that some random html file didn't include
the header. It's also possible to use a python handler to output the
html file and set the encoding explicitly, but then my static files
are no longer static, and will incur a higher overhead.
So my question is: Can charset be set for static files through
app.yaml or some other means?
- elias