change default character set of PHP functions like "htmlspecialchars" -


I am using PHP 5.2.6 and my app's character set is UTF-8.

Now, how should I change the default character set of PHP? Not so that specifies the output of the mime time and character set.

But for all the PHP functions that will be changed such as HTML, specialist, htmlentities, etc.

I know, there is a parameter in those tasks that take the character set of the input string. But I do not want to specify for all the functions I use.

function myHtmlize ($ str) {return htmlspecialchars ($ str, ENT_COMPAT, 'UTF-8'); }

Me too, do not like this solution.

I really want to tell PHP, that by default 'UTF-8' should be taken as a letter set. No 'iso-8859-1'

Is this possible?

Like this one?

  * For all given below * LC_ALL, see LC_COLLATE for strings comparison, strcoll () * See LC_CTYPE for character classification and conversion, for example strtoupper () * for locCale LC_MONETARY () * LC_NUMERIC separator for decimal (see also localeconv ()) * StraTime (for PHP) was compiled with the libran (available) * for date and time formatting with LC_MASSAgages LCTPTM  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -