From d816644b30047e8158bba6395a4b5c4283566fb9 Mon Sep 17 00:00:00 2001 From: Geoff Stokes Date: Thu, 13 Jun 2013 10:19:46 +1000 Subject: [PATCH 1/2] Changed charset to UTF-8 for device and page selectoion HTML --- src/ios_webkit_debug_proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios_webkit_debug_proxy.c b/src/ios_webkit_debug_proxy.c index 46bb1bba..43b6452c 100644 --- a/src/ios_webkit_debug_proxy.c +++ b/src/ios_webkit_debug_proxy.c @@ -200,7 +200,7 @@ char *iwdp_ipages_to_text(iwdp_ipage_t *ipages, bool want_json, const char *EXT_TO_MIME[][2] = { {"css", "text/css"}, {"gif", "image/gif; charset=binary"}, - {"html", "text/html; charset=ISO-8859-1"}, + {"html", "text/html; charset=UTF-8"}, {"ico", "image/x-icon"}, {"js", "application/javascript"}, {"json", "application/json"}, From df6e63a51e9d6735d6b5d32e33020bde7b2abaed Mon Sep 17 00:00:00 2001 From: Geoff Stokes Date: Thu, 13 Jun 2013 10:37:38 +1000 Subject: [PATCH 2/2] Add UTF-8 fix for JSON responses --- src/ios_webkit_debug_proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios_webkit_debug_proxy.c b/src/ios_webkit_debug_proxy.c index 43b6452c..597693ca 100644 --- a/src/ios_webkit_debug_proxy.c +++ b/src/ios_webkit_debug_proxy.c @@ -203,7 +203,7 @@ const char *EXT_TO_MIME[][2] = { {"html", "text/html; charset=UTF-8"}, {"ico", "image/x-icon"}, {"js", "application/javascript"}, - {"json", "application/json"}, + {"json", "application/json; charset=UTF-8"}, {"png", "image/png; charset=binary"}, {"txt", "text/plain"}, };