🍾 Xarray is now 10 years old! 🎉

xarray.coding.strings.EncodedStringCoder

xarray.coding.strings.EncodedStringCoder#

class xarray.coding.strings.EncodedStringCoder(allows_unicode=True)[source]#

Transforms between unicode strings and fixed-width UTF-8 bytes.

__init__(allows_unicode=True)[source]#

Methods

__init__([allows_unicode])

decode(variable[, name])

Convert an decoded variable to a encoded variable

encode(variable[, name])

Convert an encoded variable to a decoded variable