Problems processing special characters in a UTF-8 encoded XML document with PHP.?

Felipe A

New member
This is the code I have been using

$html_special_chars_arr_char = array( 0 =>"/≥/", 1 => "/≤/",2 => "/>/" ,3 => "/</");


$html_special_char_arr_char_code = array( 0 => "≥", 1 => "&le",2 => "&gt" ,3 => "&lt");

$purpose_summary = preg_replace($html_special_chars_arr_char, $html_special_chars_arr_char_code, $xml->brief_summary->textblock);

I am trying to replace the special utf-8 characters but php can't understand multi-byte characters in a string from utf-8 apparently

What I am tryign to do is replace greater than or equal to signs with ≥

Any help would be appreciated.
 
Back
Top