Page 1 of 2

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

Posted: Wed Oct 09, 2013 1:30 pm
by Ram

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.


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

Posted: Wed Oct 09, 2013 3:25 pm
by Kateryna Grynko

Hi Ram,

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


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

Posted: Wed Oct 09, 2013 3:57 pm
by Ram

didnt do the trick, this is what i get:

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


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

Posted: Wed Oct 09, 2013 4:25 pm
by Ram

i emailed you a public link, thx much!


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

Posted: Wed Oct 09, 2013 5:02 pm
by Kateryna Grynko

Ram,

We'll take a look.


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

Posted: Wed Oct 09, 2013 5:33 pm
by Kateryna Grynko

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


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

Posted: Wed Oct 09, 2013 5:49 pm
by Ram

tried that too and still no joy :(


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

Posted: Wed Oct 09, 2013 6:41 pm
by Kateryna Grynko

Ram,

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


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

Posted: Wed Oct 09, 2013 7:51 pm
by Ram

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


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

Posted: Wed Oct 09, 2013 8:15 pm
by Kateryna Grynko

What is the FireFox version you use?