{"id":15036280,"url":"https://github.com/hnx8/readjenc","last_synced_at":"2025-04-09T23:23:28.732Z","repository":{"id":107229377,"uuid":"103644909","full_name":"hnx8/ReadJEnc","owner":"hnx8","description":"ReadJEnc C#(.NET)用ファイル文字コード種類自動判別ライブラリ","archived":false,"fork":false,"pushed_at":"2024-03-05T09:52:58.000Z","size":70,"stargazers_count":33,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T10:48:52.875Z","etag":null,"topics":["csharp","csharp-library","encoding","jisautodetect","nkf","shift-jis"],"latest_commit_sha":null,"homepage":null,"language":"C#","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/hnx8.png","metadata":{"files":{"readme":"README.en.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-15T10:25:16.000Z","updated_at":"2025-02-27T10:42:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"342bf812-cf93-4c5d-81e1-05dab374ffce","html_url":"https://github.com/hnx8/ReadJEnc","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnx8%2FReadJEnc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnx8%2FReadJEnc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnx8%2FReadJEnc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnx8%2FReadJEnc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hnx8","download_url":"https://codeload.github.com/hnx8/ReadJEnc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248126897,"owners_count":21052087,"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":["csharp","csharp-library","encoding","jisautodetect","nkf","shift-jis"],"created_at":"2024-09-24T20:30:41.995Z","updated_at":"2025-04-09T23:23:28.703Z","avatar_url":"https://github.com/hnx8.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReadJEnc\nReadJEnc C#(.NET) File Character Code Type Automatic Determination Library\n\n## Overview\nC#(.NET Framework) Text file for automatic character code character recognition \u0026 reading library. \n\nThis is a character code auto-identification function of my own grep tool (TresGrep / HNXgrep) cut out as a library of C #.\n * Compatible: .NET 2.0/3.5/4.0/4.5/4.6/4.7, .NET Core 1.0/1.1/2.0, .NET Standard 1.3/2.0\n\n## Where to get it\n * NuGet\n\t* https://www.nuget.org/packages/ReadJEnc/\n * GitHub(Release)\n\t* https://github.com/hnx8/ReadJEnc/releases\n\t* download ReadJEnc_(yyyymmdd).zip \n * Vector (Japanese only)\n\t* http://www.vector.co.jp/soft/winnt/util/se506899.html\n\n## How does it work? (Japanese only)\n * https://github.com/hnx8/ReadJEnc/blob/master/ReadJEnc_Readme.txt\n\n## Instructions\n * See the Example below.\n```cs\n\t// Specify the file whose character encoding is to be determined by FileInfo object etc.\n\tvoid Example(System.IO.FileInfo file) \n\t{\n\n\t    using (Hnx8.ReadJEnc.FileReader reader = new FileReader(file))\n\t    {\n\t        // Perform reading \u0026 detect encoding.\n\t        Hnx8.ReadJEnc.CharCode c = reader.Read(file);\n\t        // Get file-type name form the Name property. Get encoding object from the GetEncoding() method.\n\t        string name = c.Name;\n\t        Console.WriteLine(\"【\" + name + \"】\" + file.Name);\n\t        System.Text.Encoding enc = c.GetEncoding(); \n\t        // The actual readout character string can be obtained from the Text property.\n\t        // Note : For non-text-files, null is returned.\n\t        string text = reader.Text;\n\t        // From the type of return value, you can grasp the rough classification of the file.\n\t        if (c is CharCode.Text) \n\t        {\n\t            Console.WriteLine(\"-------------------------------------\");\n\t            Console.WriteLine(text);\n\t        }\n\t    }\n\t}\n```\n * Also see another Code sample `Hnx8.ReadJEnc.WinForm.Sample\\SampleForm.cs`.\n * In addition, a sample that judges the character code from the contents of the byte array is posted in the atmarkIT.\n\t* @ IT \"[. NET TIPS: How to estimate character encoding using ReadJEnc? (Japanese only)](http://www.atmarkit.co.jp/ait/articles/1501/20/news073.html)」 \n * For more information, see [ReadJEnc_Readme.txt(Japanese only)](https://github.com/hnx8/ReadJEnc/blob/master/ReadJEnc_Readme.txt).\n\n## Other Supplement\nThe main part of the source code is briefly explained in the following blog article. \n* [Automatic determination of text file character code (2014 version) (BLOG article: 2014.08.24 in Japanese only)] (http://d.hatena.ne.jp/hnx8/20140824/1408844344)\n\n## Library incorporation example\n * TresGrep \n\t* http://hp.vector.co.jp/authors/VA055804/TresGrep/\n * HNXgrep \n\t* http://hp.vector.co.jp/authors/VA055804/HNXgrep/\n * Etc.\n\n## Contact\nIf you have any problems, doubts or impressions about this library, please give feedback to the appropriate articles of the author BLOG.\n* [hnx8 development room (author's BLOG) category \"ReadJEnc\" article list (Japanese only)](http://d.hatena.ne.jp/hnx8/archive?word=%2A%5BReadJEnc%5D)\n\n[Issues](https://github.com/hnx8/ReadJEnc/issues),[Pull requests](https://github.com/hnx8/ReadJEnc/pulls) will also accept contact.\n\n## License\n - [MIT License](https://github.com/hnx8/ReadJEnc/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhnx8%2Freadjenc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhnx8%2Freadjenc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhnx8%2Freadjenc/lists"}