src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (sPart, bEncodeEquals) {
			var sEncoded = encodeURI(sPart)
					.replace(rAmpersand, "%26")
					.replace(rHash, "%23")
					.replace(rPlus, "%2B");
			if (bEncodeEquals) {
				sEncoded = sEncoded.replace(rEquals, "%3D");
			}
			return sEncoded;
		}
function (sPart, bEncodeEquals) {
			var sEncoded = encodeURI(sPart)
					.replace(rAmpersand, "%26")
					.replace(rHash, "%23")
					.replace(rPlus, "%2B");
			if (bEncodeEquals) {
				sEncoded = sEncoded.replace(rEquals, "%3D");
			}
			return sEncoded;
		}
function ( sPart , bEncodeEquals ) { var sEncoded = encodeURI ( sPart ) . replace ( rAmpersand , "%26" ) . replace ( rHash , "%23" ) . replace ( rPlus , "%2B" ) ; if ( bEncodeEquals ) { sEncoded = sEncoded . replace ( rEquals , "%3D" ) ; } return sEncoded ; }
Encodes a query part, either a key or a value.

@param {string} sPart
The query part
@param {boolean} bEncodeEquals
If true, "=" is encoded, too
@returns {string}
The encoded query part
Encodes a query part either a key or a value .