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
Handling non-ascii charset for the response of api call #841
Comments
Please provide a way for me to reproduce this. |
Try making the request agains the actual instance instead of the reverse proxy. |
I'm using the docker image builded by linuxserver for the timebeing. my system is ubuntu 20.04.5 LTS amd64; also tested on Ubuntu 20.04.5 LTS arm64 for both docker and release |
Please post your debug infos zip. |
Nevermind, it's an issue with the docker image. |
nzbhydra.log If it's an issue with the docker image, it's strange that when I use the binary directly, it's still corrupted. |
The problem is encoding related (obviously). That's the log, not the debug infos. You can create them in the system section. After you created them you should find an entry in the log saying "File encoding". |
yes it's ANSI_X3.4-1968 in the debug infos both for docker and local. I'm going to find the language encoding setting. Thank you for you kind help and opening the issue on lxio. |
Same error using the latest docker image
I make test request using python
when query jackett directly, I get
but the xml result from nzbhydra is like
If I repeat the search in web frontend (by click I try to debug it by searching "File encoding" in the nzbhydra log files How can I debug this encoding issue? |
Issue resoved by using other docker image
All of them report File encoding: ANSI_X3.4-1968 (maybe they are built based on same base-container) and this image works fine
I am not familiar with java, but I searched that So can we add a extra |
Thanks for the research. I'm not sure setting that properly actually fixes anything. I added it to the wrapper in a container of lscr.io/linuxserver/nzbhydra2:latest and the API results still return mangled content. The UI though does show the correct results. The reported encoding in the log is misleading, I think. Can you verify that the results are shown properly in the hydra UI? |
Nevermind, found the issue. |
@Fmajor Please check newest image. |
still have bug in
do i use the right image? |
Sorry, had to pull that release, wait for next one. |
Should be fixed now. |
bug fixed in container |
I dont know if this is just I don't set something correctly but hydra's response for api call can't handle Non-ascii charset.
As a result, the language such as Japanese and Chinese would be corrupted in the response of the api call (at least for torznab: http://localhost:443/nzbhydra/torznab/api?t=tvsearch&cat=5030,5040,5000&extended=1&apikey=(removed)&offset=0&limit=100&q=Three%20Body&season=1).
If hydra can handle non-acsii charset for api call just as it handles for internal search, it would be great.
If not clear, why do you want it?
To identify release name more accurately
Do you think it's something only you need or something that might be popular?
popular, since no one likes garbled character
The text was updated successfully, but these errors were encountered: