Click or drag to resize

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
)

Parameters

s
Type: SystemString
The string to encode if it contains consecutive spaces.

Return Value

Type: String
The encoded string if consecutive spaces are found, else the original string.
See Also