ethereumjs-monorepo

@ethereumjs/util


@ethereumjs/util / fromUtf8

Function: fromUtf8()

fromUtf8(stringValue): string

Defined in: packages/util/src/internal.ts:121

Encode a UTF-8 string as a compact 0x-prefixed hex value with outer zero nibbles stripped.

Parameters

stringValue

string

Returns

string