Методи вирішення проблем роботи з кирилицею у консольних с-програмах

dc.contributor.authorРадельчук, Г.І.
dc.contributor.authorRadelchuk, G.I.
dc.date.accessioned2018-04-23T06:12:19Z
dc.date.available2018-04-23T06:12:19Z
dc.date.issued2018
dc.description.abstractВ статті проведено комплексне дослідження методів вирішення проблем, які виникають під час опрацювання україномовного тексту у консольних С-програмах. Встановлено, що причиною цих проблем є різні кодові сторінки, які використовуються у середовищах розробки і виконання програм. Розглянуто два підходи до вирішення цих проблем – забезпечення перетворення кодування символів до середовища виконання або зміна кодової сторінки у консольному вікні. На основі проведеного дослідження сформовано рекомендації щодо використання запропонованих засобів для різних версій Microsoft Visual Studio.uk_UA
dc.description.abstractThe purpose of the article is to study, analyze and systematize methods of solution to the problems with the Ukrainian-language text in console C-programs. The article provides a comprehensive study of methods for solution to the problems that occur during input, output and processing of the Ukrainian-language text in console C-programs, oriented on the development of Microsoft Visual Studio environment in different versions. It is found that the causes of these problems are different code pages used in the development environment (Microsoft Visual Studio) and the program execution environment (console) – 1251 and 866, respectively. Two approaches to the solution to these problems are considered – ensuring the conversion of character encoding to the execution environment, or the change of the code page in the runtime environment (console window). With the first approach, you can save the C-program file in the 866 encoding, which is not expedient. In the second approach, the possibilities of the programming language C and the Windows operating system are analyzed resulting in the suggestion of the means for ensuring the correct elaboration of the Ukrainian-language text: the standard function of the language C – setlocale(); functions WinAPI – SetConsoleCP() and SetConsoleOutputCP(); the system chcp command and the system() function. The mechanisms of the influence of these functions on the input/output streams are described, their advantages and disadvantages are identified, analyzed and experimentally confirmed. The presentation of the material is accompanied by fragments of program codes. On the basis of the study, recommendations for the use of the proposed tools in console C-programs for various versions of the Microsoft Visual Studio development environment were generated.uk_UA
dc.identifier.citationРадельчук, Г.І. Методи вирішення проблем роботи з кирилицею у консольних С-програмах [Текст] / Г. І. Радельчук // Вісник Хмельницького національного університету. Технічні науки. – 2018. – № 1. – С. 54-60.uk_UA
dc.identifier.urihttps://elar.khmnu.edu.ua/handle/123456789/6303
dc.language.isoukuk_UA
dc.publisherХмельницький національний університетuk_UA
dc.subjectконсольuk_UA
dc.subjectконсольна програмаuk_UA
dc.subjectмова програмування Сuk_UA
dc.subjectсередовище розробкиuk_UA
dc.subjectкодова сторінкаuk_UA
dc.subjectлокалізаціяuk_UA
dc.subjectперекодуванняuk_UA
dc.subjectconsoleuk_UA
dc.subjectconsole programuk_UA
dc.subjectprogramming language Cuk_UA
dc.subjectdevelopment environmentuk_UA
dc.subjectcode pageuk_UA
dc.subjectlocalizationuk_UA
dc.subjecttranscodinguk_UA
dc.subject.udc004.432uk_UA
dc.titleМетоди вирішення проблем роботи з кирилицею у консольних с-програмахuk_UA
dc.title.alternativeMethods of solution to the problems of work with cyrillics in console с-programsuk_UA
dc.typeСтаттяuk_UA
Файли
Контейнер файлів
Зараз показуємо 1 - 1 з 1
Вантажиться...
Ескіз
Назва:
8.pdf
Розмір:
3.18 MB
Формат:
Adobe Portable Document Format
Опис:
Ліцензійна угода
Зараз показуємо 1 - 1 з 1
Назва:
license.txt
Розмір:
4.26 KB
Формат:
Item-specific license agreed upon to submission
Опис: