1.2.421. Encoding Usage

Usage of declare(encoding = );.

<?php

// Setting encoding for the file;
    declare(encoding = 'UTF-8');

?>

See also declare.

1.2.421.1. Specs

Short name

Php/DeclareEncoding

Rulesets

All, Appinfo, CE, Changed Behavior, Preferences

Exakat since

0.12.1

PHP Version

All

Severity

Time To Fix

Precision

Very high

Features

encoding

Available in

Entreprise Edition, Community Edition, Exakat Cloud