Decode unicode escape sequences to UTF-8

Uses regex and mbstring to convert to proper UTF-8 string.

php
fork add to bundle source
function decode_escaped_sequence($string) { return preg_replace_callback('/\\\\u([0-9a-fA-F]{4})/', function ($match) { return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE'); }, $string); }

usage

load_function('decode_escaped_sequence');
← how to use this in app?
create log ...inout