diff src/cjr_print.sml @ 1596:02a50a9d50ea

Include character encoding in HTTP response headers.
author Karn Kallio <kkallio@eka>
date Wed, 16 Nov 2011 13:51:22 -0430
parents 553a5cc3a4b5
children 4973d31b5fff
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,