{"id":17014898,"url":"https://github.com/kosmx/utf-8_transcoder","last_synced_at":"2025-03-22T14:42:00.131Z","repository":{"id":103578541,"uuid":"437563239","full_name":"KosmX/utf-8_transcoder","owner":"KosmX","description":"Convert windows-retard encodings to UTF-8, but leave utf-8 files","archived":false,"fork":false,"pushed_at":"2024-03-06T10:20:48.000Z","size":182,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-27T14:40:10.976Z","etag":null,"topics":["character-encoding","utf-8"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KosmX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-12-12T14:10:05.000Z","updated_at":"2023-11-30T15:01:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"2640b072-8f3e-4b70-8398-cd769acd955e","html_url":"https://github.com/KosmX/utf-8_transcoder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KosmX%2Futf-8_transcoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KosmX%2Futf-8_transcoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KosmX%2Futf-8_transcoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KosmX%2Futf-8_transcoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KosmX","download_url":"https://codeload.github.com/KosmX/utf-8_transcoder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244973701,"owners_count":20541022,"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":["character-encoding","utf-8"],"created_at":"2024-10-14T06:26:31.170Z","updated_at":"2025-03-22T14:42:00.111Z","avatar_url":"https://github.com/KosmX.png","language":"Java","readme":"# utf-8_transcoder\n## Convert windows local encodings to UTF-8, but leave UTF-8 files\n\n---\n\nI'm just trying to solve the most annoying issue of Windows OS:    \nRandom local encodings.  \n\nThis is a java program, what converts local-encoded files into UTF-8. But not touch anything else.  \n\n`java -jar transcode.jar \".+\\.((txt)|h|c|(cpp))\" \"windows-1250\" \"dir/to/recode/recursively\"`\n\nUsage:\n1. copy `transcode` into a folder, in your path.\n2. Edit the `FROM_ENCODING=\"windows-1250\"` line, replace your source encoding (This is the default for Hungary)\n3. `gradle build`, then copy `build/libs/transcoder-***.jar` into the same folder, you copied `transcoder`\n4. `chmod +x transcoder`\n\nYou might want to edit the regex to inclide other file extensions.  \nThe program doesn't recognise binary so you'll have to filter files using extension. (as any binary is a valid *windows-retard-encoding* encoded file)\n\n\n## Windows\nBecause this is a Java program, you can run it on anywhere, but I don't know how-to make a proper wrapper script for windows.\n\nAlternatively you can use [WSL](https://docs.microsoft.com/en-us/windows/wsl/) on Windows for this.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkosmx%2Futf-8_transcoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkosmx%2Futf-8_transcoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkosmx%2Futf-8_transcoder/lists"}