Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

javascript to replace cyrillic characters with latin characters

Avatar

Level 1

hi all,

I'm trying to build a form that contains one big text field and button. A user should be able to paste a text with cyrillic characters in the text field, then press the button and replace all cyrillic characters with appropriate latin characters. Is it possible to do that with javascript?

I did just that in excel by using VBA.

i tried this in Button1 click event:

     var txt = TextField1.rawValue;

     txt.rawValue = Replace(txt.rawValue,"Б","B");

i also tried with unicode character codes for this letters:

    

var txt = TextField1.rawValue;

     txt= Replace(txt,&#1041,&#66);

thanks in advance

0 Replies