diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-06-06 14:58:05 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-06-06 14:58:05 +0200 |
commit | 47b673324f06236264ca64f8c3155aab51762609 (patch) | |
tree | f3754539c910f32e714dd41bcafdadf2cd4fcf3c /user_guide_src/source/libraries/output.rst | |
parent | 4c8bf738bb41bcda840105e3d6f767408989cc75 (diff) |
Add a second parameter (charset) to CI_Output::set_content_type() + fix for issue #666
Diffstat (limited to 'user_guide_src/source/libraries/output.rst')
-rw-r--r-- | user_guide_src/source/libraries/output.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/user_guide_src/source/libraries/output.rst b/user_guide_src/source/libraries/output.rst index baceaae7b..0472d14cf 100644 --- a/user_guide_src/source/libraries/output.rst +++ b/user_guide_src/source/libraries/output.rst @@ -49,6 +49,10 @@ data, JPEG's, XML, etc easily. .. important:: Make sure any non-mime string you pass to this method exists in config/mimes.php or it will have no effect. +You can also set the character set of the document, by passing a second argument:: + + $this->output->set_content_type('css', 'utf-8'); + $this->output->get_content_type(); ========================================== |