{"id":15460494,"url":"https://github.com/schollz/utfdecode","last_synced_at":"2025-04-22T10:35:12.018Z","repository":{"id":57531664,"uuid":"277555792","full_name":"schollz/utfdecode","owner":"schollz","description":"A simple library to decode a string that contains escaped UTF-16/32 characters into unescaped UTF-16.","archived":false,"fork":false,"pushed_at":"2020-07-06T22:36:19.000Z","size":13,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T10:34:58.635Z","etag":null,"topics":["decode","golang","strings","unicode","utf-16","utf-32"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schollz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-06T13:54:30.000Z","updated_at":"2024-08-12T20:03:26.000Z","dependencies_parsed_at":"2022-09-06T23:11:52.556Z","dependency_job_id":null,"html_url":"https://github.com/schollz/utfdecode","commit_stats":null,"previous_names":["schollz/utf16decode"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Futfdecode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Futfdecode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Futfdecode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Futfdecode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schollz","download_url":"https://codeload.github.com/schollz/utfdecode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250221536,"owners_count":21394722,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["decode","golang","strings","unicode","utf-16","utf-32"],"created_at":"2024-10-01T23:22:08.013Z","updated_at":"2025-04-22T10:35:11.986Z","avatar_url":"https://github.com/schollz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# utfdecode\n\n[![travis](https://travis-ci.org/schollz/utfdecode.svg?branch=master)](https://travis-ci.org/schollz/utfdecode) \n[![go report card](https://goreportcard.com/badge/github.com/schollz/utfdecode)](https://goreportcard.com/report/github.com/schollz/utfdecode) \n[![coverage](https://img.shields.io/badge/coverage-100%25-brightgreen.svg)](https://gocover.io/github.com/schollz/utfdecode)\n[![godocs](https://godoc.org/github.com/schollz/utfdecode?status.svg)](https://godoc.org/github.com/schollz/utfdecode) \n\nI wanted to convert text containing escaped UTF-16 and/or UTF-32 codes to just UTF-16. This library helps do that. It rejexes for unicde strings and then converts them to UTF-16 [using the standard formula](https://en.wikipedia.org/wiki/UTF-16). The code is small enough that you might just consider copy and pasting :)\n\n\nFor example, the following Go code ([on Go play](https://play.golang.org/p/-NioHUeLZZv)):\n\n```golang\njsonData := `{\"text\":\"utf-16:\\u2764\\u1F47D\\u1F680 utf-32:\\u2764\\ud83d\\udc7d\\ud83d\\ude80\"}`\nfmt.Println(utfdecode.Decode(jsonData))\n```\n\nwill print\n\n```\n{\"text\":\"utf-16:❤👽🚀 utf-32:❤👽🚀\"}\n```\n\n\n## Contributing\n\nPull requests are welcome. Feel free to...\n\n- Revise documentation\n- Add new features\n- Fix bugs\n- Suggest improvements\n\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschollz%2Futfdecode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschollz%2Futfdecode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschollz%2Futfdecode/lists"}