KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Character encoding in HTML5 pages
PRODUCT: 4D Web 2.0 Pack | VERSION: 12.1 | PLATFORM: Mac & Win
Published On: February 4, 2011

Base code for HTML5 pages is very simple in basic form, as shown here:

<DOCTYPE html>
<html>
<head>
...


That said, it is highly recommended to include language and character encoding. Even if UTF-8 specific characters are not used, specifying character encoding can prevent security vulnerabilities. (For more information see https://code.google.com/p/doctype/wiki/ArticleUtf7.)

<DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
...