@jan_blaha I didn't try. We have a few instances of JSReport and we had issues with template synchronization through the file system across all instances and Postgres solved our problems
sergikoff
@sergikoff
Posts made by sergikoff
-
RE: Umlaut symbols rendered as �
-
RE: Umlaut symbols rendered as �
@jan_blaha I passed
"reports": { "save": true }
to API and checked result on JSReport side.
Here is what I see injsreport_blob
table with the query:select convert_from(content, 'utf-8')::text as html from jsreport_blob where blobName='reports/data/dev/welcome_email/body.html/76f3836c-b5a9-4534-a446-dedb30221aea.html';
-
RE: Umlaut symbols rendered as �
@jan_blaha can you please give me a hint on how to log render results on the JSReport side? I'll compare the results on both sides. Thanks!
-
RE: Umlaut symbols rendered as �
@jan_blaha yes, in HTML output but the browser is not involved. We're making an API request to the JSReport instance to render the template and it returns HTML with � instead of correct symbols.
-
Umlaut symbols rendered as �
We're trying to render an HTML template with umlaut symbols (ö/ü/ä). As the result, we get � symbol in rendered HTML output.
I tried to replicate this issue in Playground but everything works there as expected https://playground.jsreport.net/w/sergioly/lkSOqsxG
We use the same version of JSReport as Playground -3.5.0
but in our case, it's the base Docker image with a few extensions. Here is our Dockerfile:FROM jsreport/jsreport:3.5.0 RUN npm install @jsreport/jsreport-postgres-store \ @jsreport/jsreport-xlsx
I assume that the issue is related to the fonts. And tried to install google fonts and
ttf-opensans
package but nothing helped.
Can you please give me a hand on this? -
RE: Is it possible to create a json file through JSReport API?
The Assets was my guess but I stuck with the
content
field. Thanks for the tip with Definition! Looks like it can be just base64 encoded text.
Thank you, Jan! -
Is it possible to create a json file through JSReport API?
Hello! We have a service that is responsible for report templates creation/updation in JSReport. And we adding localization feature. Is it possible to do create/update localization json files through API? If yes, please, show me how. Thanks!
-
RE: How to store only templates data on docker volume?
You're right.
docker system prune --all
and build from scratch did the trick.
Thanks!