@digitalpersona/core
Version:
DigitalPersona Web Access Core library
26 lines (17 loc) • 1.4 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@digitalpersona/core](./core.md) > [Utf8](./core.utf8.md)
## Utf8 class
Set of converters to UTF8.
<b>Signature:</b>
```typescript
export declare class Utf8
```
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [fromBase64](./core.utf8.frombase64.md) | <code>static</code> | <code>(s: Base64String) => Utf8String</code> | Decodes a Base64-encoded string to a UTF8 string. |
| [fromBase64Url](./core.utf8.frombase64url.md) | <code>static</code> | <code>(s: Base64UrlString) => Utf8String</code> | Decodes a Base64url-encoded string to a UTF8 string. |
| [fromBytes](./core.utf8.frombytes.md) | <code>static</code> | <code>(bytes: number[] | Uint8Array) => Utf8String</code> | Converts a byte array to a UTF16 string. |
| [fromUtf16](./core.utf8.fromutf16.md) | <code>static</code> | <code>(s: Utf16String) => Utf8String</code> | Converts a UTF16 string to a UTF16 string. |
| [noBom](./core.utf8.nobom.md) | <code>static</code> | <code>(s: Utf8String) => Utf8String</code> | Strips a Byte-Order-Mark (BOM) from the UTF8 string. |
| [withBom](./core.utf8.withbom.md) | <code>static</code> | <code>(s: Utf8String) => Utf8String</code> | Appends Byte-Order-Mark (BOM) to the UTF8 string. |