Answer the question
In order to leave comments, you need to log in
How to compare 2 Cyrillic characters?
Hello
Sorry for the noob question, 2nd day undertook to look at erlang.
The task in the following
is a string broken into characters and a certain algorithm for replacing characters is applied to it.
for example
func(CHAR)->
case string:equal(CHAR,"о") of
true
-> "і";
_Else
-> CHAR
end.
Answer the question
In order to leave comments, you need to log in
How would I figure out
the problem, as always in Windows,
because if I enter text in the console, it is in windows-1251 encoding and the result is also output in the same encoding, but the console itself interprets it as cp866.
Thank you for your attention
Used for breakdown
string:sub_string(TEXT,POS,POS)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question