Converts text from one encoding to another - must be used with Ajax since it doesn't support encodings other than utf-8.
Namespace: MonoSoftware.CoreAssembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)
Syntax
C# |
---|
public static string ConvertToEncoding(
this string textToConvert,
string srcEncoding,
string destEncoding
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Function ConvertToEncoding (
textToConvert As String,
srcEncoding As String,
destEncoding As String
) As String |
Visual C++ |
---|
public:
[ExtensionAttribute]
static String^ ConvertToEncoding(
String^ textToConvert,
String^ srcEncoding,
String^ destEncoding
) |
F# |
---|
static member ConvertToEncoding :
textToConvert : string *
srcEncoding : string *
destEncoding : string -> string
|
Return Value
Type:
StringConverted encoded text
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also