Ram
Posts: 0
Joined: Fri Aug 02, 2013 12:15 pm

When reading option from select i get %E2%80%8B before the select text

Dear Appery,

when using the following code:

code
var voiceName = Appery("select_voice").find("option:selected").text();
alert(voiceName);
var url = "http://xxx.yyy.s3.amazonaws.com/voice/" + voiceName ;
/code

in the alert i get the selected text as it should be, however when i use the variant voiceName as part of a link i get:

code
http://xxx.yyy.s3.amazonaws.com/voice/%E2%80%8BDave
/code

i tried to remove it using:

code
var n = url.replace("%E2%80%8B", "");
/code

but that didnt help too....

Any thoughts will be highly appreciated!!
Best,
R.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

When reading option from select i get %E2%80%8B before the select text

Hi Ram,

Let's try the following: codevar voiceName = Appery("select_voice").find("option:selected").text().replace(/[\n\r]/gi,"").trim();/code

Ram
Posts: 0
Joined: Fri Aug 02, 2013 12:15 pm

When reading option from select i get %E2%80%8B before the select text

didnt do the trick, this is what i get:

code
.s3.amazonaws.com/voice/%E2%80%8BAlan.mp3
/code

Ram
Posts: 0
Joined: Fri Aug 02, 2013 12:15 pm

When reading option from select i get %E2%80%8B before the select text

i emailed you a public link, thx much!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

When reading option from select i get %E2%80%8B before the select text

Try:
codevoiceName = voiceName.replace("%E2%80%8B", "");/code
Output the result to the console before and after conversion. What is the result?

Ram
Posts: 0
Joined: Fri Aug 02, 2013 12:15 pm

When reading option from select i get %E2%80%8B before the select text

tried that too and still no joy :(

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

When reading option from select i get %E2%80%8B before the select text

Ram,

Everything works for me: no symbols, sound works.
What browser do you use?

Ram
Posts: 0
Joined: Fri Aug 02, 2013 12:15 pm

When reading option from select i get %E2%80%8B before the select text

i use Firefox, post your latest reply i tried it on chrome and its working as it should and also with mobile safari...

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

When reading option from select i get %E2%80%8B before the select text

What is the FireFox version you use?

Return to “Issues”