File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,36 @@ the parent :class:`Symfony\\Component\\HttpKernel\\Kernel` class.
11
11
Configuration
12
12
-------------
13
13
14
+ * `Charset `_
14
15
* `Kernel Name `_
15
16
* `Root Directory `_
16
17
* `Cache Directory `_
17
18
* `Log Directory `_
18
19
20
+ .. versionadded :: 2.1
21
+ The :method: `Symfony\\ Component\\ HttpKernel\\ Kernel::getCharset ` method is new
22
+ in Symfony 2.1
23
+
24
+ Charset
25
+ ~~~~~~~
26
+
27
+ **type **: ``string `` **default **: ``UTF-8 ``
28
+
29
+ This returns the charset that is used in the application. To change it, override the
30
+ :method: `Symfony\\ Component\\ HttpKernel\\ Kernel::getCharset ` method and return another
31
+ charset, for instance::
32
+
33
+ // app/AppKernel.php
34
+
35
+ // ...
36
+ class AppKernel extends Kernel
37
+ {
38
+ public function getCharset()
39
+ {
40
+ return 'ISO-8859-1';
41
+ }
42
+ }
43
+
19
44
Kernel Name
20
45
~~~~~~~~~~~
21
46
You can’t perform that action at this time.
0 commit comments