Problem with StringReplace (% char)
If i try to replace a ' # ' or any other char with a ' % ' char this command is not working. It will be replaced by a blank.
Is there any way to make this possible?
string myText = "TEST#TEST";
I need this because i want to send open orders to my webserver by using http request. For example a symbol with name #NOK# is making troubles because in an URL a # symbol needs to be escaped by %23
- www.mql5.com
Sorry für den Text auf Englisch, dachte ich schreibe im englischen Forum.
Problem hat sich gelöst, war meine eigene Dummheit. Ich habe die Ausgabe des Resultates mit PrintFormat (myText) ohne weitere Parameter genutzt anstelle von Print(myText).
Replace von # in % funktioniert einwandfrei mit der Funktion StringReplace
Sorry für die Verwirrung und trotzdem vielen Dank für die Hilfe.
Gruß
Diego
If i try to replace a ' # ' or any other char with a ' % ' char this command is not working. It will be replaced by a blank.
Is there any way to make this possible?
string myText = "TEST#TEST";
I need this because i want to send open orders to my webserver by using http request. For example a symbol with name #NOK# is making troubles because in an URL a # symbol needs to be escaped by %23