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

Get Capabilities pretty=true flag encoding issue #3266

Closed
ltshb opened this issue Apr 18, 2024 · 0 comments · Fixed by #3373
Closed

Get Capabilities pretty=true flag encoding issue #3266

ltshb opened this issue Apr 18, 2024 · 0 comments · Fixed by #3373

Comments

@ltshb
Copy link

ltshb commented Apr 18, 2024

Context

MapFish print docker image version: camptocamp/mapfish_print:3195

Describe the bug

When requesting the capabilities with the pretty=true query parameter, the json answer is not correctly encoded in utf-8 as specified in the Content-Type header but in some other encoding.
This can be reproduced if the capabilities have a special character, like for example having an attribute copyright with a ©

templates:
#===========================================================================
  "1. A4 landscape": !template
#===========================================================================
    pdfConfig: !pdfConfig &pdfConfig
      title: "A4 Landscape"
      keywords: ["map.geoadmin.ch"]
    reportTemplate: A4_landscape_template.jrxml
    attributes:
      url: !string {}
      copyright: !string &copyright
          default: '© swisstopo'

Without the pretty flag it works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants