fleeksoft / ksoup

Ksoup is a Kotlin Multiplatform library for working with HTML and XML. It's a port of the renowned Java library Jsoup.
https://fleeksoft.github.io/ksoup/
Apache License 2.0
306 stars 12 forks source link

Modularize Charset Decoder Implementation and Remove `ktor-io` dep from `ksoup-core` #66

Closed itboy87 closed 1 month ago

itboy87 commented 2 months ago

Modularizing the charset decoder implementation within the ksoup-core library to remove the dependency on ktor-io. This change will allow us to release the charset decoder as a separate module, enhancing the flexibility and modularity of the library.

Currently, the ksoup-core kotlinx variant module relies on ktor-io for charset decoding. This dependency can be restrictive for users who do not require ktor-io or prefer to not use or alternative libraries for charset decoding.

Note: By default, the library uses the UTF-8 Charset Decoder which work well for most of content. Additional charset support is only necessary if other charsets are needed, so users who are only using UTF-8 do not require it.

itboy87 commented 1 month ago

This is partially fixed but follow up in #78