charset for static served files

33 views
Skip to first unread message

elias_naur

unread,
Sep 9, 2010, 8:31:36 AM9/9/10
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

brillout.com

unread,
Nov 18, 2012, 4:23:29 PM11/18/12
to google-a...@googlegroups.com
I'm looking for the same thing. Have you had any luck?

- Romuald
Reply all
Reply to author
Forward
0 new messages