Share via


Convert Method

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Supports conversion between URL-encoded and UNICODE-encoded URLs.

Convert (InputString, InputType, OutputType)

Parameters

Parameter

Description

InputString  

The string to be converted.

InputType   

The type of input string. Valid values are URL or UNICODE.

OutputType   

The type of output string. Valid values are URL or UNICODE.

Remarks

This method provides a way to decode UNICODE URLs into URLs or convert URLs to UNICODE URLs.

Example 1: Microsoft Visual Basic Scripting Edition

Code

WPSC.Convert "http://my%20data.xml", "URL", "UNICODE"

Example 2: Microsoft JScript

Code

WPSC.Convert("http://my%20data.xml", "URL", "UNICODE");

Requirements

Applies to: WPSC Object

See Also

Other Resources

Web Part Page Services Component (WPSC) Object Model