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

[Bug] While reading from ComicInfo.xml in UTF-8 I receive an ERROR 9480 #409

Closed
1 of 5 tasks
MKH-42 opened this issue Feb 16, 2021 · 2 comments
Closed
1 of 5 tasks

Comments

@MKH-42
Copy link
Contributor

MKH-42 commented Feb 16, 2021

Komga environment

  • OS: Windows
  • Komga version: 0.69.2
  • I am running Komga with Docker
    • Docker image tag [e.g. latest, beta]:
  • I am running Komga from the jar
    • Java version: java version "1.8.0_271"
  • I have a problem in the web interface
    • Browser (with version):
  • I have a problem with an OPDS client application
    • OPDS Application (with version):
  • I have a problem with the Tachiyomi extension
    • Tachiyomi version:
    • Tachiyomi extension version:

Describe the bug

Komga has in some situations problems with UTF-8 ComicInfo.xml files.

Steps to reproduce

I will add a sample file

Expected behavior

It should be possible to read UTF-8 files.

Actual behavior

I receive following error: ERROR 9480

Additional context

I also tried to start Komga with option -Dfile.encoding=UTF-8.
This doesn't help.

Screenshots

If applicable, add screenshots to help explain your problem.

Log file

If applicable, add an excerpt of the log file (max 20 lines), or a link to a gist containing the log file.

2021-02-16 00:57:30.567 ERROR 9480 --- [enerContainer-1] o.g.k.i.m.comicinfo.ComicInfoProvider : Error while retrieving metadata from ComicInfo.xml

com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 middle byte 0x74 (at char #257, byte #37)
at com.fasterxml.jackson.dataformat.xml.XmlFactory._initializeXmlReader(XmlFactory.java:690) ~[jackson-dataformat-xml-2.11.3.jar!/:2.11.3]
ComicTest.zip

@Kussie
Copy link
Contributor

Kussie commented Feb 16, 2021

Your ComicInfo.xml file is not valid UTF-8 hence the error.

simplexml_load_string(): Entity: line 6: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xE4 0x74 0x74 0x65

You need to save/change the encoding on your ComicInfo.xml to UTF-8 as well, your example is ANSI. Changing it to UTF-8 works

@MKH-42
Copy link
Contributor Author

MKH-42 commented Feb 16, 2021

Thanks!
It looks like the file format is wrong.

@MKH-42 MKH-42 closed this as completed Feb 16, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants