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

Use Charset detection #326

Open
ftomassetti opened this issue Apr 24, 2024 · 0 comments
Open

Use Charset detection #326

ftomassetti opened this issue Apr 24, 2024 · 0 comments
Milestone

Comments

@ftomassetti
Copy link
Member

For example:

val charset = Charset.forName(TikaEncodingDetector().guessEncoding(FileInputStream(file)))
val resultWithEncoding = EGLKolasuParser().parse(file, charset)

We should change parse to have as default behavior guessing the encoding, if it is not specified.

Dependency to add:

implementation("org.apache.any23:apache-any23-encoding:1.1")
@ftomassetti ftomassetti added this to the 1.6.0 milestone Apr 24, 2024
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