Share via


SPEncode.WriteUrlEncodeWithQuote method

Encodes the specified string, converting special characters to quoted UTF-8 format, and writes the string in quotation marks to the HTTP output content stream.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Sub WriteUrlEncodeWithQuote ( _
    response As HttpResponse, _
    str As String, _
    quoteChar As Char _
)
'Usage
Dim response As HttpResponse
Dim str As String
Dim quoteChar As CharSPEncode.WriteUrlEncodeWithQuote(response, _
    str, quoteChar)
public static void WriteUrlEncodeWithQuote(
    HttpResponse response,
    string str,
    char quoteChar
)

Parameters

  • quoteChar
    Type: System.Char

    A System.Char object that specifies the character to use for quotation marks.

See also

Reference

SPEncode class

SPEncode members

Microsoft.SharePoint.Utilities namespace