mpatric / mp3agic

A java library for reading mp3 files and reading / manipulating the ID3 tags (ID3v1 and ID3v2.2 through ID3v2.4).
MIT License
1.2k stars 310 forks source link

EncodedText toString() is Reserved By Kotlin #190

Open michaelryannewell opened 2 years ago

michaelryannewell commented 2 years ago

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"