codepoint_to_utf8 example

else
                    {
                        $codepoint = intval($codepoint);
                    }

                    if (isset($windows_1252_specials[$codepoint]))
                    {
                        $replacement = $windows_1252_specials[$codepoint];
                    }
                    else
                    {
                        $replacement = SimplePie_Misc::codepoint_to_utf8($codepoint);
                    }

                    if (!in_array($this->consume(), array(';', false), true))
                    {
                        $this->unconsume();
                    }

                    $consumed_length = strlen($this->consumed);
                    $this->data = substr_replace($this->data, $replacement$this->position - $consumed_length$consumed_length);
                    $this->position += strlen($replacement) - $consumed_length;
                }
                
Home | Imprint | This part of the site doesn't use cookies.