@@ -331,7 +331,7 @@ Then, create your groups definition:
331331
332332 .. code-block :: xml
333333
334- <?xml version =" 1.0" ?>
334+ <?xml version =" 1.0" encoding = " UTF-8 " ?>
335335 <serializer xmlns =" http://symfony.com/schema/dic/serializer-mapping"
336336 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
337337 xsi : schemaLocation =" http://symfony.com/schema/dic/serializer-mapping
@@ -613,7 +613,7 @@ defines a ``Person`` entity with a ``firstName`` property:
613613
614614 .. code-block :: xml
615615
616- <?xml version =" 1.0" ?>
616+ <?xml version =" 1.0" encoding = " UTF-8 " ?>
617617 <serializer xmlns =" http://symfony.com/schema/dic/serializer-mapping"
618618 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
619619 xsi : schemaLocation =" http://symfony.com/schema/dic/serializer-mapping
@@ -903,7 +903,7 @@ For example, take an object normalized as following::
903903
904904The ``XmlEncoder `` will encode this object like that::
905905
906- <?xml version="1.0"?>
906+ <?xml version="1.0" encoding="UTF-8" ?>
907907 <response>
908908 <foo>1</foo>
909909 <foo>2</foo>
@@ -1187,7 +1187,7 @@ Here, we set it to 2 for the ``$child`` property:
11871187
11881188 .. code-block :: xml
11891189
1190- <?xml version =" 1.0" ?>
1190+ <?xml version =" 1.0" encoding = " UTF-8 " ?>
11911191 <serializer xmlns =" http://symfony.com/schema/dic/serializer-mapping"
11921192 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
11931193 xsi : schemaLocation =" http://symfony.com/schema/dic/serializer-mapping
@@ -1505,7 +1505,7 @@ and ``BitBucketCodeRepository`` classes:
15051505
15061506 .. code-block :: xml
15071507
1508- <?xml version =" 1.0" ?>
1508+ <?xml version =" 1.0" encoding = " UTF-8 " ?>
15091509 <serializer xmlns =" http://symfony.com/schema/dic/serializer-mapping"
15101510 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
15111511 xsi : schemaLocation =" http://symfony.com/schema/dic/serializer-mapping
0 commit comments