Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EncodedText toString() is Reserved By Kotlin #190

Open
michaelryannewell opened this issue Jan 13, 2022 · 0 comments
Open

EncodedText toString() is Reserved By Kotlin #190

michaelryannewell opened this issue Jan 13, 2022 · 0 comments

Comments

@michaelryannewell
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant