KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: When is the Standard Set encoding used?
PRODUCT: 4D | VERSION: 13.1 | PLATFORM: Mac & Win
Published On: October 13, 2012

4D provides a global encoding setting for the Web server in the Database Settings called "Standard Set":



(the default value is "UTF-8" in new datababases)

When is this value important?

This value is only used when responding to dynamic requests. Specifically 4D sets the Content-Type HTTP header to include the encoding if responding to a dynamic request. Here is an example header:

Content-Type: text/html; charset=utf-8

If responding to a static request, the "Content-Type" header does not include the encoding value (it is assumed the static document takes of the encoding itself), for example:

Content-Type: text/html

Note "dynamic requests" includes semi-dynaminc requests, e.g. shtml files. If 4D processes the file in any way, it will take the Standard Set value into account and subsequently include the specifified encoding in the Content-Type header.

This setting does NOT effect the use of the PROCESS 4D TAGS command. PROCESS 4D TAGS uses MacRoman for BLOBs and UTF-16 for Text.