Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

template.ini [CharsetSettings]

The settings of [CharsetSettings] in template.ini: DefaultTemplateCharset, DefaultTemplateLocale, AutoConvertOnSave

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/ini-settings/template/CharsetSettings.md

On this page

template.ini [CharsetSettings]

The block [CharsetSettings] of settings/template.ini, with 3 setting(s).

Never edit settings/template.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/template.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/template.ini.append.php for one siteaccess,
  • extension/<extension>/settings/template.ini.append.php in an extension (read when the extension is active).

DefaultTemplateCharset

The charset to use if no charset is specified in the template

Default: utf-8.

<?php /* #?ini charset="utf-8"?
# settings/override/template.ini.append.php
[CharsetSettings]
DefaultTemplateCharset=utf-8
*/ ?>

DefaultTemplateLocale

The locale to use for character manipulations if no locale is specified in
the template. (C is a special locale meaning 7-bit ASCII). Examples for this
setting include "german", "de_DE.ISO-8859-1"; depending on your operating
system.

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/template.ini.append.php
[CharsetSettings]
DefaultTemplateLocale=
*/ ?>

AutoConvertOnSave

The following setting will autoconvert the template to the HTTPCharset as set
in i18n.ini:CharacterSettings:HTTPCharset when saving a template file from
the admin interface, and add or adjust the template header when required.

Default: enabled.

<?php /* #?ini charset="utf-8"?
# settings/override/template.ini.append.php
[CharsetSettings]
AutoConvertOnSave=enabled
*/ ?>

Generated by ./console exp:help:examples from settings/template.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x