pluginsGLPI / talk

GLPI Plugin Talk (Download : https://github.com/TECLIB/talk/releases)
http://www.teclib.com/
GNU General Public License v2.0
5 stars 0 forks source link

trouble with solution special characteres #7

Closed orthagh closed 10 years ago

orthagh commented 10 years ago

When solution (only with solution items) contains caracters &#dec; (ex :è for é). hmtl_entity_decode replace them by utf8 ? char

fast correction :

$ticket->fields['solution'] = preg_replace_callback("/(&#[0-9]+;)/", function($m) { return mb_convert_encoding($m[1], "UTF-8", "HTML-ENTITIES"); }, $ticket->fields['solution']);