changeset 1596:02a50a9d50ea

Include character encoding in HTTP response headers.
author Karn Kallio <kkallio@eka>
date Wed, 16 Nov 2011 13:51:22 -0430
parents 154cfe2eb366
children cdca9691434a
files src/cjr_print.sml
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cjr_print.sml	Mon Nov 14 09:15:10 2011 -0500
+++ b/src/cjr_print.sml	Wed Nov 16 13:51:22 2011 -0430
@@ -2814,7 +2814,7 @@
                      box (case ek of
                               Core.Rpc _ => [string "uw_write_header(ctx, \"Content-type: text/plain\\r\\n\");",
                                              newline]
-                            | _ => [string "uw_write_header(ctx, \"Content-type: text/html\\r\\n\");",
+                            | _ => [string "uw_write_header(ctx, \"Content-type: text/html; charset=utf-8\\r\\n\");",
                                     newline,
                                     string "uw_write_header(ctx, \"Content-script-type: text/javascript\\r\\n\");",
                                     newline,