How do I store a Cyrillic letter in a char
? Because a char stores the data using ASCII, but that doesn't include Cyrillic characters(ex: йцукенгшщз). So how can I store Cyrillic letters in a char?
Asked
Active
Viewed 1,437 times
0

lost_in_the_source
- 10,998
- 9
- 46
- 75
-
1@IanRoberts, C++ I'd imagine since that's what he's tagged the question as. – user3507600 Apr 16 '14 at 15:03
-
possible duplicate of [How to use Unicode in C++?](http://stackoverflow.com/questions/3010739/how-to-use-unicode-in-c) – user3507600 Apr 16 '14 at 15:05
-
@user3507600 at the time I posted my comment the question only had two tags - `char` and `ascii` – Ian Roberts Apr 16 '14 at 15:25
-
@IanRoberts, ah, well in that case you really didn't know did you. – user3507600 Apr 16 '14 at 15:28
-
If you don't want to rewrite your code to use wide characters, UTF-8 is a good way to store Unicode strings in a C string compatible format: http://en.wikipedia.org/wiki/UTF-8 – Jeremy Friesner Apr 16 '14 at 15:42
1 Answers
2
Maybe I don't understood question, but try to use right codepage. CP1251 / OEM 866 / KOI8-R? There exists some codepages that may be supported by viewers and that allows to store and represent any Cyrillic symbol in single char.

Arkady
- 2,084
- 3
- 27
- 48