{"id":27708151,"url":"https://github.com/lovasoa/lcid-to-codepage","last_synced_at":"2026-02-19T01:31:30.411Z","repository":{"id":260706996,"uuid":"882118182","full_name":"lovasoa/lcid-to-codepage","owner":"lovasoa","description":"This tool generates a comprehensive CSV file containing Windows locale information, ANSI/OEM code pages, and character encoding details for all locales installed on your system.","archived":false,"fork":false,"pushed_at":"2024-11-02T00:54:50.000Z","size":49,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-24T04:38:25.928Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lovasoa.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-01T23:41:29.000Z","updated_at":"2025-07-01T03:27:07.000Z","dependencies_parsed_at":"2024-11-02T01:16:17.540Z","dependency_job_id":"7449d1ef-bd21-4db5-a583-c998cb5f6250","html_url":"https://github.com/lovasoa/lcid-to-codepage","commit_stats":null,"previous_names":["lovasoa/lcid-to-codepage"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lovasoa/lcid-to-codepage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Flcid-to-codepage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Flcid-to-codepage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Flcid-to-codepage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Flcid-to-codepage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovasoa","download_url":"https://codeload.github.com/lovasoa/lcid-to-codepage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Flcid-to-codepage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29600752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T00:59:38.239Z","status":"ssl_error","status_checked_at":"2026-02-19T00:59:36.936Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-04-26T08:39:39.926Z","updated_at":"2026-02-19T01:31:30.388Z","avatar_url":"https://github.com/lovasoa.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Windows Locale to Character Encoding Mapping\n\nThis tool generates a comprehensive CSV file containing Windows locale information, LCID, ANSI/OEM code pages, and character encoding details for all locales installed on your system.\n\nIf you are only interested in the results, see [**windows_locales_extended.csv**](./windows_locales_extended.csv).\n\n## What Problem Does It Solve?\n\nWhen working with international text, legacy applications, or character encoding conversions, you often need to know:\n- Which code page is used for a specific language/country\n- What character encoding corresponds to a specific locale\n- How Windows maps between locales and character sets\n\nThis program automatically extracts all this information from your Windows system and saves it in an easy-to-use CSV format.\n\n## Key Features\n\n- Lists all installed Windows locales\n- Maps locale identifiers (LCID) to their code pages\n- Provides both ANSI and OEM code page information\n- Includes character set names for each code page\n- Shows language names in both English and native script\n- Exports everything to a UTF-8 encoded CSV file\n\n## Output Format\n\nThe program creates a CSV file with the following columns:\n1. `Locale Name` (e.g., \"en-US\", \"ja-JP\")\n2. `LCID` (Locale Identifier in hexadecimal)\n3. `ANSI CodePage` (e.g., 1252, 932)\n4. `ANSI Character Set` (e.g., \"Windows-1252 Western European\")\n5. `OEM CodePage` (e.g., 437, 932)\n6. `OEM Character Set` (e.g., \"OEM United States\")\n7. `Native Language Name` (Language name in its own script)\n8. `English Language Name`\n9. `Country` (in English)\n10. `Script` (Writing system used)\n\n## Building the Program\n\n### Using Visual Studio\n\n```batch\ncl locale_encoding.c\n```\n\n### Using MinGW\n\n```batch\ngcc locale_encoding.c -o locale_encoding.exe\n```\n\n## Usage\n\n1. Simply run the compiled executable:\n   ```batch\n   locale_encoding.exe\n   ```\n\n2. The program will create a file named `windows_locales_extended.csv` in the same directory\n\n3. Open the CSV file with Excel, LibreOffice, or any text editor that supports UTF-8\n\n## Common Use Cases\n\n- Finding the correct code page for legacy system integration\n- International software development\n- Character encoding conversion tools\n- Database collation configuration\n- Text file encoding detection\n- Legacy system maintenance\n- Internationalization (i18n) projects\n- Localization (l10n) planning\n\n## Technical Details\n\nThe program uses the following Windows APIs:\n- `EnumSystemLocalesEx`: Enumerates available locales\n- `GetLocaleInfoW`: Retrieves locale-specific information\n- `GetCPInfoExW`: Gets code page characteristics\n- `LocaleNameToLCID`: Converts locale names to LCIDs\n\n## Search Keywords\n\nWindows, Locale, LCID, Code Page, Character Set, Encoding, ANSI, OEM, UTF-8, ASCII, Windows-1252, Shift-JIS, GBK, Big5, ISO-8859, Character Map, Internationalization, i18n, l10n, GetLocaleInfo, EnumSystemLocales, GetCPInfoEx, National Language Support, NLS, Universal Character Set, UCS, Unicode, Language Code, Country Code, Regional Settings\n\n## Related Concepts\n\n- Unicode transformation\n- Character encoding conversion\n- Text internationalization\n- Windows National Language Support (NLS)\n- Regional and Language settings\n- Legacy text encoding\n- Multi-language support\n- Code page detection\n- Character set conversion\n\n## Notes\n\n- The program requires Windows Vista or later\n- Output is UTF-8 encoded with BOM for Excel compatibility\n- Empty or zero values in code page fields indicate Unicode-only locales\n- Some locales might share the same code page\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasoa%2Flcid-to-codepage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovasoa%2Flcid-to-codepage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasoa%2Flcid-to-codepage/lists"}