Skip to content

EncodedText toString() is Reserved By Kotlin #190

@michaelryannewell

Description

@michaelryannewell

The function should be renamed to something like:


    fun toEncodedString(): String {
        return try {
            bytesToString(value, characterSetForTextEncoding(textEncoding))
        } catch (e: CharacterCodingException) {
            ""
        }
    }

Otherwise, Kotlin uses the .toString() function from Android OS resulting in a string "Java.function.etc"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions