:tada: *New Library Release: Kotlin Multiplatform ...
# feed
s
🎉 New Library Release: Kotlin Multiplatform Charset v0.0.1🎉 I’m thrilled to announce the first release of Kotlin Multiplatform Charset, a pure port of JDK Charset designed to make encoding and decoding operations seamless across platforms like JVM, Android, iOS, macOS, Linux, Windows, JavaScript, and WebAssembly! 🚀 What’s Included:charset module: Standard character sets support. • charset-ext module: Extended character sets for broader coverage. Check it out, give it a try, and let me know your thoughts! Your feedback and contributions are highly welcome. 🙌 Github: https://github.com/fleeksoft/charset
s
With Ktor 3 now available on all platforms, I'm curious - what advantages does your implementation offer over the features included in Ktor 3?
r
And just out of curiosity - what is MicroAmper?
s
@Stefan Oltmann Ktor 3 charsets do not work consistently across all platforms, and not all charsets are supported on every platform. Additionally, Ktor 3 does not support features like:
Copy code
.onMalformedInput(CodingErrorAction.REPLACE)
.onUnmappableCharacter(CodingErrorAction.REPLACE)
Also it don't support checking overflow/underflow for decoding. Ktor 3 charsets only provide basic encoding/decoding functionality using platform-specific APIs. In contrast, this library offers a consistent encoding/decoding API across all platforms, with support for all mentioned charsets. It works similarly to JDK charsets but is fully functional on all platforms. I was using Ktor 3 Charset in my fleeksoft/Ksoup library but many chrasets like UTF-32 and other were not supported on other than JVM platform and also I need
@Stefan Oltmann Ktor 3 charsets do not work consistently across all platforms, and not all charsets are supported on every platform. Additionally, Ktor 3 does not support features like: Also it don't support checking overflow/underflow for decoding. Ktor 3 charsets only provide basic encoding/decoding functionality using platform-specific APIs. In contrast, this library offers a consistent encoding/decoding API across all platforms, with support for all mentioned charsets. It works similarly to JDK charsets but is fully functional on all platforms. I was using Ktor 3 Charset in my fleeksoft/Ksoup library but many chrasets like UTF-32 and other many were not supported on other than JVM platform and also I need to check underflow/overflow of decoder which was not possible and i replaced that with this library recently.
👍 1
@Robert Jaros MicroAmper is a custom Gradle script designed to support Amper features without using Amper itself. I initially started my projects with Amper, but it had too many issues, so I removed it and used this script, which works well. In the future, I will replace it with the Amper plugin once it is stable enough.