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

Mojibake in metadata #562

Closed
2 tasks done
zsitvaij opened this issue Nov 8, 2019 · 4 comments
Closed
2 tasks done

Mojibake in metadata #562

zsitvaij opened this issue Nov 8, 2019 · 4 comments

Comments

@zsitvaij
Copy link

zsitvaij commented Nov 8, 2019

Prerequisites

  • Did you read FAQ section?
  • Did you test with the latest releases or commit ?

Description

On some (not all) artworks, title and tags are different and gibberish compared to opening Pixiv page in browser. This is on Linux and locale en_US.utf8, and independent of Pixiv user interface language (tested English and Japanese).

Steps to Reproduce

  1. Download by image_id
  2. 77717834
  3. Observe gibberish

Expected behavior:
Expected tags to match those on Pixiv page https://www.pixiv.net/en/artworks/77717834
Title = Nah-nah…
Tags = ペルソナ5, P5D, 高巻杏

Actual behavior:
Title = Nah-nah…
Tags = ペルソナ5, P5D, 高巻æ??

Versions

20191106-beta3, git HEAD.

@Nandaka
Copy link
Owner

Nandaka commented Nov 8, 2019

I don't have linux box, so I cannot really test it.
The code itself should be creating the file with utf8 encoding.
https://github.com/Nandaka/PixivUtil2/blob/master/PixivModel.py#L502

@zsitvaij
Copy link
Author

zsitvaij commented Nov 8, 2019

Same results testing on Windows. From the artist in question, from image_id 77076403 and onward tags are illegible, images older than that download with legible tags.

@Nandaka Nandaka closed this as completed in 0647332 Nov 9, 2019
@Nandaka
Copy link
Owner

Nandaka commented Nov 9, 2019

should be ok in latest commit (at least in windows)

@zsitvaij
Copy link
Author

zsitvaij commented Nov 9, 2019

Thanks! I can confirm it's fixed on Linux as well.

35122 pushed a commit to 35122/PixivUtil2 that referenced this issue Oct 30, 2020
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

2 participants