Answer the question
In order to leave comments, you need to log in
How to encode text with JavaScript, how are parameters encoded when submitting html form?
When sending a regular
<form accept-charset="UTF-8">
<input name="text">
<input type="submit">
</form>
?text=мой+текст+в+поле+ввода+%2B+%3D+.
encodeURI(string)
, encodeURIComponent(string)
, escape(string)
- these functions encode the text a little differently. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question