TextCMS Documentation - Internal Plugins - CHARSET

Plugin Description

The following parameter in "config.cfg" sets the default character set for your web site:

<?php

...
TEXTCMS::SetCharset ( "UTF-8" );
...

?>
Character set is important for web sites using non-English characters. By default all articles are using the same character set specified in "config.cfg". But you can override it for a particular article. The syntax of the plugin is: [CHARSET](character_set)[/CHARSET]. For example if you have an article in Russian using "windows-1252" character set and do not want to convert ut to "UTF-8", you can place the following line anywhere in the article: [CHARSET]windows-1252[/CHARSET].

Plugin Usage

This plugin can be used everywhere, but we only recommend to use it in articles to avoid multiple confusing instances:

Articles
Templates
Modules
Areas

Attributes

This plugin does not support attributes.

Styling

This plugin does not support plugin-specific styling.

Example

[CHARSET]windows-1252[/CHARSET]
(c) 2018-2024 TextCMS