{"id":20697235,"url":"https://github.com/tsnsoft/cpputf8crossplatform","last_synced_at":"2026-05-08T19:31:28.119Z","repository":{"id":237405436,"uuid":"721503764","full_name":"tsnsoft/CppUTF8CrossPlatform","owner":"tsnsoft","description":"Пример консольной кроссплатформенной программы на C++ с UTF-8 для Visual Studio 2022","archived":false,"fork":false,"pushed_at":"2023-11-21T07:43:57.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-29T22:56:43.732Z","etag":null,"topics":["console","cpp","cross-platform","linux","utf-8","visual-studio","windows"],"latest_commit_sha":null,"homepage":"","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/tsnsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2023-11-21T07:43:52.000Z","updated_at":"2024-09-27T11:58:51.000Z","dependencies_parsed_at":"2024-05-01T11:42:26.792Z","dependency_job_id":null,"html_url":"https://github.com/tsnsoft/CppUTF8CrossPlatform","commit_stats":null,"previous_names":["tsnsoft/cpputf8crossplatform"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tsnsoft/CppUTF8CrossPlatform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FCppUTF8CrossPlatform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FCppUTF8CrossPlatform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FCppUTF8CrossPlatform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FCppUTF8CrossPlatform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsnsoft","download_url":"https://codeload.github.com/tsnsoft/CppUTF8CrossPlatform/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FCppUTF8CrossPlatform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32794558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"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":["console","cpp","cross-platform","linux","utf-8","visual-studio","windows"],"created_at":"2024-11-17T00:17:14.541Z","updated_at":"2026-05-08T19:31:28.094Z","avatar_url":"https://github.com/tsnsoft.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CppUTF8CrossPlatform\nПример консольной кроссплатформенной программы на C++ с UTF-8 для Visual Studio 2022\n\n![srcreenshot](screenshot.png)\n\n```\n#include \u003cstdlib.h\u003e\n#include \u003ciostream\u003e\n\n#ifdef _WIN32 // Если это Windows\n#include \u003cio.h\u003e\n#include \u003cfcntl.h\u003e\n#endif \n\n\nint main(int argc, char** argv)\n{\n\tsetlocale(LC_ALL, \"ru_RU.UTF-8\"); // Установить русскую локаль для Linux\n\n#ifdef _WIN32\n\t_setmode(_fileno(stdout), _O_U16TEXT); // Установить Юникод для вывода в консоли Windows\n\t_setmode(_fileno(stdin), _O_U16TEXT); // Установить Юникод для ввода в консоли Windows\n\t_setmode(_fileno(stderr), _O_U16TEXT); // Установить Юникод для вывода ошибок в консоли Windows\n#endif \n\n\tstd::wcout \u003c\u003c L\"Замечательно! Das ist großartig! Wonderful! 精彩的！ رائع!\\n\";\n\tstd::wcout \u003c\u003c L\"Введите имя: \";\n\tstd::wstring fio; // Создать строковую переменную\n\tstd::wcin \u003e\u003e fio; // Считать строку\n\tstd::wcout \u003c\u003c L\"Привет, \" \u003c\u003c fio \u003c\u003c \"!\" \u003c\u003c std::endl; // Вывести строку\n\tstd::wcout \u003c\u003c L\"Размер строки: \" \u003c\u003c fio.length() \u003c\u003c std::endl;\n\tfor (int i = 0; i \u003c fio.length(); i++) {\n\t\tstd::wcout \u003c\u003c \"[\" \u003c\u003c i \u003c\u003c \"]: \" \u003c\u003c fio[i] \u003c\u003c \" (code: \" \u003c\u003c int(fio[i]) \u003c\u003c \")\" \u003c\u003c std::endl;\n\t}\n\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsnsoft%2Fcpputf8crossplatform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsnsoft%2Fcpputf8crossplatform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsnsoft%2Fcpputf8crossplatform/lists"}