Ruby javascript unescape equivalent

Posted by vise on Stack Overflow See other posts from Stack Overflow or by vise
Published on 2010-05-20T15:22:06Z Indexed on 2010/05/20 15:40 UTC
Read the original article Hit count: 176

Filed under:
|
|

I want to unescape the following string:

'\u00020\u0002Standard\u00023\u0002Doe John\u000169\u0002\u0010\u0002Lorem\u0002\u0011\u0002Ipsum\u0002\u0014\u0002'

Javascripts unescape function works ok, however how can I unescape it in ruby?

Take in mind that unescape(previousString) is 0Standard3Doe John69LoremIpsum.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about JavaScript