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

composer' html items do not respect the character encoding of HTML pages loaded via URL #19583

Closed
qgib opened this issue Sep 28, 2014 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks

Comments

@qgib
Copy link
Contributor

qgib commented Sep 28, 2014

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)
Original Redmine Issue: 11287
Affected QGIS version: master
Redmine category:map_composer/printing
Assignee: Nyall Dawson


The composer' html items do not respect the character encoding declared within HTML pages when loaded via entering a URL.

Steps to reproduce:

  1. Create a new composer, and add an html item onto it
  2. In the html item's URL text box, enter "http://www.licadho-cambodia.org/?khmer"
  3. Hit Refresh HTML
  4. When the page is drawn, you'll notice a lot of ÁÁÁÁÁÁÁ characters, indicating that the character encoding used to render the page is set to something other than UTF-8 (the declared encoding of the loaded page)

Load the above-mentioned page in your browser to see how it should normally look with proper encoding. I'm attaching a screenshot which should also help.

Whatever underlying QT web tech the html item is using, if it can't detect a given page's character encoding, it surely allows for a default character encoding to be set, which should be UTF-8 to insure greatest compatibility with what's out there.

It's a pretty significant issue when it comes to making sure QGIS works for everyone around the globe.

Setting the priority to high as I am not sure if this regressed, or if it was always like that.


@qgib
Copy link
Contributor Author

qgib commented Sep 28, 2014

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)


As to express the wide-ranging impact of this issue, I'm attaching a screenshot showing broken character encoding of an Arabic wikipedia page.


  • 7860 was configured as html_item-broken_arabic.png

@qgib
Copy link
Contributor Author

qgib commented Sep 30, 2014

Author Name: Nyall Dawson (@nyalldawson)


Fixed in changeset "184122571ac1d310de8c8906e512788ebbbb29a9".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks labels May 25, 2019
@qgib qgib added this to the Future Release - High Priority milestone May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks
Projects
None yet
Development

No branches or pull requests

1 participant