Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: utf8

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

File/phputf8/utils/validation.php

Description
Functions
utf8_compliant (line 175)

Tests whether a string complies as UTF-8. This will be much

faster than utf8_is_valid but will pass five and six octet UTF-8 sequences, which are not supported by Unicode and so cannot be displayed correctly in a browser. In other words it is not as strict as utf8_is_valid but it's faster. If you use is to validate user input, you place yourself at the risk that attackers will be able to inject 5 and 6 byte sequences (which may or may not be a significant risk, depending on what you are are doing)

boolean utf8_compliant (string $str)
  • string $str: UTF-8 string to check
utf8_is_valid (line 32)

Tests a string as to whether it's valid UTF-8 and supported by the

Unicode standard Note: this function has been modified to simple return true or false

boolean utf8_is_valid (string $str)
  • string $str: UTF-8 encoded string

Documentation generated on Mon, 05 Mar 2007 21:30:50 +0000 by phpDocumentor 1.3.1