Skip to content

yasuoka/unescape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unescape.c

Simple implementation which unescapes JSON's escaped encoded strings to UTF-8 strings.

Example:

$ cat > example.c
#include <stdio.h>
const char *unescape(const char *, char *, size_t);
main()
{
    char buf[80];
    printf("%s\n",
        unescape("\\u3053\\u3093\\u306b\\u3061\\u306f\\u4e16\\u754c\\uff01",
        buf, sizeof(buf)));
}
^D
$
$ cc -o example example.c unescape.c
$
$ ./example
こんにちは世界!
$

About

Unescapes JSON's escaped strings

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published