WebApplication : Set default encoding type 64/40764/3
authorSeungkeun Lee <sngn.lee@samsung.com>
Tue, 9 Jun 2015 01:35:32 +0000 (10:35 +0900)
committerSeungkeun Lee <sngn.lee@samsung.com>
Thu, 11 Jun 2015 06:32:43 +0000 (23:32 -0700)
Change-Id: Iaf8db81dbb2d8cb0a64b5d6752365de2e666bb6a

src/runtime/web_application.cc

index 4ce003e..36bccff 100755 (executable)
@@ -372,6 +372,7 @@ void WebApplication::Launch(std::unique_ptr<wrt::AppControl> appcontrol) {
 
   std::unique_ptr<ResourceManager::Resource> res =
     resource_manager_->GetStartResource(appcontrol.get());
+  view->SetDefaultEncoding(res->encoding());
   // TODO(wy80.choi): temporary comment for test, remove it later.
   // view->LoadUrl("file:///home/owner/apps_rw/33CFo0eFJe/"
   //               "33CFo0eFJe.annex/index.html");
@@ -413,7 +414,7 @@ void WebApplication::AppControl(std::unique_ptr<wrt::AppControl> appcontrol) {
     ClearViewStack();
     WebView* view = new WebView(window_, ewk_context_);
     SetupWebView(view);
-
+    view->SetDefaultEncoding(res->encoding());
     view->LoadUrl(res->uri());
     view_stack_.push_front(view);
     window_->SetContent(view->evas_object());