/jutf

Go implementation of modified UTF-8 (Java)

Primary LanguageGoMIT LicenseMIT

jutf

This library implements support for the modified UTF-8 scheme used in Java. In particular, this is the format used by the DataInputStream#readUTF and DataOutputStream#writeUTF methods.

The library exports two functions:

func Decode(d []byte) (string, error)
func Encode(s string) []byte

License

MIT. See LICENSE.