From 4735773fd4c9332b0913fd63a9e1e444920f6d82 Mon Sep 17 00:00:00 2001 From: Jessica Stokes Date: Thu, 13 Jun 2013 00:19:46 +0000 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 fa12f5ff..dce31e65 100644 --- a/src/ios_webkit_debug_proxy.c +++ b/src/ios_webkit_debug_proxy.c @@ -212,7 +212,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 1bac29825582a8fddc6ee92d99a6599c61aa83b7 Mon Sep 17 00:00:00 2001 From: Jessica Stokes Date: Thu, 13 Jun 2013 00:37:38 +0000 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 dce31e65..458fc9a0 100644 --- a/src/ios_webkit_debug_proxy.c +++ b/src/ios_webkit_debug_proxy.c @@ -215,7 +215,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"}, };