If you are trying to send it as part of URL, this has to be encoded using encodeURIComponent
since it is a reserved character. EX:
encodeURIComponent('AlzdpoiasklnlasEE==') // will return "AlzdpoiasklnlasEE%3D%3D"
URLs do not allow many special characters, like spaces or slashes.
However these special characters are part of life, so URL is needed.
You can use decodeURIComponent
at server to reverse a string's URL encoding and and get normal text value.
Characters that are reserved within a query component and/or have special meaning within a URI/URL:
reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" | "$" | ","
The "reserved" syntax class above refers to those characters that are allowed within a URI, but which may not be allowed within a particular component of the generic URI syntax. Characters in the "reserved" set are not reserved in all contexts. The hostname, for example, can contain an optional username so it could be something like ftp://user@hostname/
where the '@' character has special meaning.