Add all countries to flag list

Set encoding (Must be changed to UTF-8 in future)
This commit is contained in:
YNH Webdev
2013-09-15 17:32:23 +02:00
parent 647beea245
commit 358fe04699
3 changed files with 7 additions and 10 deletions

View File

@@ -61,7 +61,7 @@ feature
control.handle_callback (control_name, event, event_parameter)
create states_changes.make
control.read_state_changes (states_changes)
response.put_header ({HTTP_STATUS_CODE}.ok, <<["Content-Type", "application/json"]>>)
response.put_header ({HTTP_STATUS_CODE}.ok, <<["Content-Type", "application/json; charset=ISO-8859-1"]>>)
response.put_string (states_changes.representation)
else
process
@@ -91,7 +91,7 @@ feature
data.append ("<script src=%"/widget.js%"></script>")
data.append ("</body></html>")
create page.make
page.put_header ({HTTP_STATUS_CODE}.ok, <<["Content-Type", "text/html"]>>)
page.put_header ({HTTP_STATUS_CODE}.ok, <<["Content-Type", "text/html; charset=ISO-8859-1"]>>)
page.set_body (data)
response.send (page)
end