in reply to Faster utf8 escaping.

What if you were escaping the string "Why am I getting \ufffd?". Shouldn't you escape "\" as well?

Replies are listed 'Best First'.
Re^2: Faster utf8 escaping.
by kyle (Abbot) on Apr 07, 2009 at 23:42 UTC

    Shouldn't you escape "\" as well?

    I'd think so, but Unicode::Escape doesn't. In our code, we escape that and quotation marks before calling it.