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

[BUG] Non UTF-8 characters break PDF #4

Open
1 task done
JeS24 opened this issue Jan 4, 2022 · 0 comments
Open
1 task done

[BUG] Non UTF-8 characters break PDF #4

JeS24 opened this issue Jan 4, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@JeS24
Copy link
Member

JeS24 commented Jan 4, 2022

Problem Description

Non-UTF-8 characters such as μ are rendered fine in the web-preview, but not rendered in the PDF and cause artifacts as in the screenshot.
webpage
pdf

Expected Behavior

PDF should render properly.

Steps to Reproduce the Problem

  1. Go to the website.
  2. Select Microbiology from SBS.
  3. Generate PDF.

Platform Details

  • Browser (with Version): Tested on Edge Dev 98.0.1100.3 (Official build) dev (64-bit), Firefox 95.0.2 (64-bit)
  • Operating System (with Version): Windows 10 Pro Build 19044.1415

Additional context

This is an issue with jsPDF unless we load a custom font. Since that will just bloat the website, let's not use non-UTF-8 characters in the database.

Self-check

  • I have checked timetable/issues and could not find any related open bug report.
@JeS24 JeS24 added the bug Something isn't working label Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant