Faced with a problem on phalcon's sanitize data function
sanitize("Мар'яна", 'string');
produces Мар'яна
but in php5.5 htmlspecialchars
htmlspecialchars("Мар'яна", ENT_QUOTES)
produces Мар'яна
some more description on a problem in older php versions https://ua2.php.net/manual/ru/function.htmlspecialchars-decode.php#82133
Is this a bug or how do I get same result with phalcon sanitize as with htmlspecialchars?