Skip to main content
October 30, 2014
Question

str.replace can't recognize some character in adobe js

  • October 30, 2014
  • 1 reply
  • 568 views

Hi,

Some file name with foreign character like à  è  ì  ò  ù  À  È  Ì  Ò  Ù. Want to replace with others and for this str.replace(/à/g, '1OeL1') use this js function but this function can't recognize those character.
How can i recognize those character with adobe js. please help me in this regards. i'm working on adobe bridge cs5.

thanks in advance.

This topic has been closed for replies.

1 reply

Pedro Cortez Marques
Legend
October 31, 2014

\ missing


str.replace(/\à/g, '1OeL1')

October 31, 2014

Thanks for your reply.

actually no changed after applied.

File name:Testà è ì.png

0: Testà è ì.png

str.replace(/\à/g, '1OeL1');

1: Testà è ì.png

Is there any other way?

Pedro Cortez Marques
Legend
November 2, 2014

var str = "Testà è ì.png"

str = str.replace(/\à/g, '1OeL1');

alert(str); // = Test1OeL1 è ì.png