Convert
Converts a set of bytes from one encoding to another encoding.
Public Function Convert(
ByVal srcEncoding As Encoding,
ByVal dstEncoding As Encoding,
ByRef Bytes ( ) As Byte,
Optional ByRef Index As Variant,
Optional ByRef Count As Variant ) As Byte ( )
Parameters
- srcEncoding
-
[ByVal]
Encoding.
The encoding to be used to decode the bytes.
- dstEncoding
-
[ByVal]
Encoding.
The encoding to be used to re-encode the decoded characters.
- Bytes
-
[ByRef]
Byte.
The bytes to be converted from one encoding to the other.
- Index
-
[ByRef]
Optional.
Variant.
The starting byte to begin decoding at.
- Count
-
[ByRef]
Optional.
Variant.
The number of bytes to be included in the decoding process.
Return Values
Byte() - The encoded bytes.
Remarks
See Also
Project VBCorLib Overview
| Class EncodingStatic Overview