utf16 unescape in response

May 9, 2013 at 9:07 AM
Is there any helper function to unescape uft16 to a wstring in Casablanca? This would be useful if response contains such escaping (www.unicode.org/faq/utf_bom.html; escaped as: \uXXXX (java/c style) or &#xXXXX; or &#DDDDD; (http or xml)).

There is an example to do this using regex (http://stackoverflow.com/questions/3147900/how-to-read-file-which-contains-uxxxx-in-vc) for \uXXXX style and works with minor changes to remove boost.

Ideally I prefer this support to be part of Casablanca.
May 13, 2013 at 5:02 PM
No, we don't have anything like that in Casablanca, but it sounds like a good suggestion, if it's a common thing to do. We'll take it into consideration.