Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

javascript to replace cyrillic characters with latin characters

$
0
0

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


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>