func()

in internal/mode/advanced/indexer/encoding.go [39:48]


func (e *Encoder) tryEncodeBytes(b []byte) string {
	encoded, err := e.encodeBytes(b)
	if err != nil {
		logkit.WithError(err).Warn("Encode bytes failed")
		s := string(b)
		return s // TODO: Run it through the UTF-8 replacement encoder
	}

	return encoded
}