summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/output.rst
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-06 14:58:05 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-06 14:58:05 +0200
commit47b673324f06236264ca64f8c3155aab51762609 (patch)
treef3754539c910f32e714dd41bcafdadf2cd4fcf3c /user_guide_src/source/libraries/output.rst
parent4c8bf738bb41bcda840105e3d6f767408989cc75 (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.rst4
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();
==========================================