HTML charset

In order to correctly handle application data in the user agent, the HTML page charset needs to be set.

As the Genero Application Server (GAS) generates HTML5 pages from templates, and uses the FGLASDIR/web/gwc-js/bootstrap.html file for the Genero Web Client for JavaScript (GWC-JS) front-end, the charset is defined in the prolog or metadata of these files. The charset defined here takes precedence over system locale settings.

Example

The code example comes from the bootstrap.html using the UTF-8 encoding:

<!DOCTYPE html>

<!--
   FOURJS_START_COPYRIGHT(D,2014)
   Property of Four Js*
   (c) Copyright Four Js 2014, 2019. All Rights Reserved.
   * Trademark of Four Js Development Tools Europe Ltd
     in the United States and elsewhere
   
   This file can be modified by licensees according to the product manual.
   FOURJS_END_COPYRIGHT
 -->

<html>

<head>
  <meta charset="utf-8">
  <title>Genero Browser Client</title>

  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  ...
  };
</script>
</head>
...