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

Document informations : invalid UTF-8 coding #24

Open
sebastinas opened this issue May 8, 2020 · 5 comments
Open

Document informations : invalid UTF-8 coding #24

sebastinas opened this issue May 8, 2020 · 5 comments
Labels
has attachment Attachment was not transfered from GitLab

Comments

@sebastinas
Copy link
Member

On GitLab by @Dupond on May 8, 2020, 14:51


Hello,

Trying to display document informations (with :info) for the attached file doesn't work : I have the bottom white bar displayed in the zathura window, but nothing is displayed on it.

The console gives the following error (in french, translation follows) :

$ zathura doc.pdf

(org.pwmt.zathura:49246): Gtk-WARNING **: 14:42:35.172: Failed to set text '<b>Créateur:</b> \xfe\xff
<b>Producteur:</b> \xfe\xff
<b>Date de création:</b> D:20200504133643+02'00'' from markup due to error parsing markup: Erreur à la ligne 2, caractère 2 : Codage UTF-8 non valide dans le nom — «  \xfe\xff
 » n’est pas valide

The translation would be : "Error on line 2, character 2 : invalid UTF-8 coding in the name — « \xfe\xff
» is not valid"

I create this issue as confidential, since this is a private letter, and I'm not the author.

Any idea on how it can be solved ?

Best regards,
Duponddoc.pdf

@sebastinas
Copy link
Member Author

I cannot reproduce the issue (even with LANG set to fr_FR.utf-8). Cannot you tell us a little bit more about your system? Which localee are you using? Is something else than fr_FR.utf-8?

@sebastinas
Copy link
Member Author

On GitLab by @Dupond on May 8, 2020, 16:23


Sorry for the lack of details ; I didn't know it would not be easy to reproduce.

I use Arch Linux 5.6.11 (freshly updated) on an HP Stream Notebook PC 13.

Zathura version :

$ zathura -v
zathura 0.4.5
girara 0.3.4 (runtime: 0.3.4)
(plugin) djvu (0.2.9) (/usr/lib/zathura/libdjvu.so)
(plugin) pdf-mupdf (0.3.5) (/usr/lib/zathura/libpdf-mupdf.so)

My locales :

$ locale -a
C
fr_FR.utf8
POSIX

$ locale
LANG=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=

$ localectl list-locales
fr_FR.UTF-8

I'd be glad to provide more information if needed. Not sure what I could add for the moment, please ask me.

Thanx for the help !

Edit : I've deleted my zathurarc to be sure it wouldn't interfere ; the problem is the same (I only had very few custom settings, anyway).

@sebastinas
Copy link
Member Author

moved from zathura#146

@sebastinas
Copy link
Member Author

That's a bug in the mupdf plugin. The poppler plugin handles it correctly.

@sebastinas
Copy link
Member Author

On GitLab by @Dupond on May 8, 2020, 16:50


Indeed it is. I can confirm that the problem disappears with zathura-pdf-poppler. I should have tested this in the first place, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has attachment Attachment was not transfered from GitLab
Projects
None yet
Development

No branches or pull requests

1 participant