Piuttosto normale....
Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \U, or \u at offset 1
Se il risutato dovrebbe essere tipo questo: °."°".diventa fan."°".° © allora c'è solo da fae un piccolo cambio...
codice:.... return preg_replace("#/u([0-9A-F]{4})#ie", "hex2str(\"$1\")", $str); .... $text = "\u00b0.\u2022\u00b0\u2022.\u2605diventa fan\u2605.\u2022\u00b0\u2022.\u00b0 \u00a9"; $text = str_replace("\u", "/u", $text); ....

Rispondi quotando