special characters - PHP Normalizer: Fatal error: Class 'Normalizer' not found -


i trying normalise string, gives error,

fatal error: class 'normalizer' not found in c:xx.php on line xx

as far understand need if want use normalizer class,

$string = "löic & rené"; $normalise = normalizer::normalize($string); 

i have turned on php extension php_intl. there else should turn on use type of class? or have done incorrectly?

i tried code php.net have same error,

$char_a_ring = "\xc3\x85"; // 'latin capital letter ring above' (u+00c5) $char_combining_ring_above = "\xcc\x8a";  // 'combining ring above' (u+030a)  $char_1 = normalizer::normalize( $char_a_ring, normalizer::form_c ); $char_2 = normalizer::normalize( 'a' . $char_combining_ring_above, normalizer::form_c );  echo urlencode($char_1); echo ' ';  echo urlencode($char_2); 

any ideas?

i on wamp server 2.2.11 way.

thanks.

you need php 5 >= 5.3.0 reason

do restarted web service?


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -