View Source UniRecover (uni_recover v0.1.2)

See UniRecover.sub/3 for documentation.

Summary

Functions

Substitutes all illegal sequences in the provided data with the Unicode replacement character.

Functions

Link to this function

sub(bytes, encoding \\ :utf8, replacement \\ "�")

View Source
@spec sub(
  binary(),
  :utf8 | :utf16 | :utf16be | :utf16le | :utf32 | :utf32be | :utf32le,
  String.t()
) ::
  binary()

Substitutes all illegal sequences in the provided data with the Unicode replacement character.