Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5
Source code for file /joomla/utilities/compat/phputf8env.php

Documentation is available at phputf8env.php

  1. <?php
  2. /**
  3. @version        $Id: phputf8env.php 6138 2007-01-02 03:44:18Z eddiea $
  4. @package        Joomla.Framework
  5. @subpackage    Compatibility
  6. @copyright    Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
  7. @license        GNU/GPL, see LICENSE.php
  8. *  Joomla! is free software. This version may have been modified pursuant
  9. *  to the GNU General Public License, and as distributed it includes or
  10. *  is derivative of works licensed under the GNU General Public License or
  11. *  other free or open source software licenses.
  12. *  See COPYRIGHT.php for copyright notices and details.
  13. */
  14.  
  15. /**
  16.  * PHP mbstring and iconv local configuration
  17.  *
  18.  * @package        Joomla.Framework
  19.  * @subpackage    Compatibility
  20.  * @since        1.5
  21.  */
  22. // check if mbstring extension is loaded and attempt to load it if not present except for windows
  23. if (extension_loaded('mbstring'|| ((!strtoupper(substr(PHP_OS03)) === 'WIN' && dl('mbstring.so')))) {
  24.     //Make sure to surpress the output in case ini_set is disabled
  25.         @ini_set('mbstring.internal_encoding''UTF-8');
  26.     @ini_set('mbstring.http_input''UTF-8');
  27.     @ini_set('mbstring.http_output''UTF-8');
  28. }
  29.  
  30. // same for iconv
  31. if (function_exists('iconv'|| ((!strtoupper(substr(PHP_OS03)) === 'WIN' && dl('iconv.so')))) {
  32.        // these are settings that can be set inside code
  33.         iconv_set_encoding("internal_encoding""UTF-8");
  34.     iconv_set_encoding("input_encoding""UTF-8");
  35.     iconv_set_encoding("output_encoding""UTF-8");
  36. }
  37. ?>

Documentation generated on Mon, 05 Mar 2007 21:18:42 +0000 by phpDocumentor 1.3.1