Table of Contents

Class UnicodeDecodeError

Namespace
NumSharp
Assembly
NumSharp.dll

NumPy-compatible UnicodeDecodeError: bytes that the source encoding cannot read. NumSharp raises it where NumPy's ASCII codec does — an S (byte-string) value holding a byte at or above 0x80 stored into a U array, cast to U, or given to np.array(…, dtype='U').

public class UnicodeDecodeError : UnicodeError, ISerializable, INumSharpException
Inheritance
UnicodeDecodeError
Implements
Inherited Members

Remarks

The message follows CPython's UnicodeDecodeError.str for the ASCII codec, which reports the FIRST bad byte only: 'ascii' codec can't decode byte 0xe9 in position 1: ordinal not in range(128).

Constructors

UnicodeDecodeError(string)

Creates the error with CPython's message text.

public UnicodeDecodeError(string message)

Parameters

message string

The verbatim message.