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

Special characters don't get rendered correctly on captive portal #8132

Open
heiko-ma opened this issue May 3, 2024 · 3 comments
Open

Special characters don't get rendered correctly on captive portal #8132

heiko-ma opened this issue May 3, 2024 · 3 comments

Comments

@heiko-ma
Copy link

heiko-ma commented May 3, 2024

Describe the bug
When using special chars like ä,ö,ü the captive-portal does not display them correctly. The content is display correctly while using the web editor though. The file on the filesystem is also correctly encoded. I suspect some kind of error in the webserver presenting those files

To Reproduce
Steps to reproduce the behavior:

  1. Open a connection profile in PacketFence
  2. Switch to Tab 'Files' and edit a file (I used the aup_text.html)
  3. Enter a text which includes special characters
  4. Preview the file and see that the special chars are substituted by question marks

Expected behavior
Special chars are getting rendered correctly, as the encoding in layout.html is set to UTF-8

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Edge

Smartphone (please complete the following information):

  • Device: Samsung S20 FE
  • OS: Android 14
  • Browser: Stock browser

Additional context
As stated above, the file should get displayed correctly and every application in which I paste the text does it. I even tried converting the file using dos2unix, but it did not help, so I believe the webserver scrambles something

@JeGoi
Copy link
Contributor

JeGoi commented May 6, 2024

Hi @heiko-ma
Thanks for reporting, which version of PF are you using?
Regards

@satkunas satkunas modified the milestones: PacketFence-13.2, +1 (patch release) May 6, 2024
@JeGoi
Copy link
Contributor

JeGoi commented May 9, 2024

Confirmed on 13.2

@JeGoi
Copy link
Contributor

JeGoi commented Aug 7, 2024

Still there on devel /14.0

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

No branches or pull requests

4 participants