EAPEncodeEncodeSpaces Method |
If the string contains consecutive spaces, encode all spaces as 0x00A0, the Unicode
non-breaking space. This is necessary where double spaces need to be maintained such
as in SELECT OPTION elements used for filtering.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string EncodeSpaces(
string s
)
Public Shared Function EncodeSpaces (
s As String
) As String
Parameters
- s
- Type: SystemString
The string to encode if it contains consecutive spaces.
Return Value
Type:
StringThe encoded string if consecutive spaces are found, else the original string.
See Also