Hi
I’m using the new feature of Shinyproxy “template-path” to customize the homepage of shinyproxy.
My page contains some characters accentuation like “é, à, è”, but shinyproxy renders them to ��.
Unfortunately, I cannot reproduce the problem. I tried with a few (special) UTF-8 characters and everything is working fine here. I tried with both firefox and chrome.
Can you send the exact template file you are using (as text)?
Hi @tdekoninck,
Thank you for your response !
Which shinyproxy version did you used ? I tried with 2.6.1 and 3.0.0 and both not working, with accentuated charachters.
Did you build shinyproxy JAR with html inside or used the proxy.template-path param ?
I have the same problem (e.g. Sören turns into S��ren).
UPDATE:
The problem only concerns the contents in the website frame for the running apps (so the display of the apps is somewhat broken). It does not concern the header of the Shiny proxy wrapper (black header on top): When I add special characters to the header, they are displayed perfectly. Also the app overview of ShinyProxy can display those characters perfectly.
I am running ShinyProxy 3.0.1, Oracle Linux Server release 8.7, Docker version 23.0.6.
When I create my app images and start them stand-alone (individually) with “docker run”, I can test them and they look beautiful and perfect in the browser.
So the issue must have something to do with ShinyProxy.
Also, I can say that the issue first appeared when I switched from ShinyProxy 2.6.1 to ShinyProxy 3.0.1.
I am not using any templates within my folder from which I build my ShinyProxy image.
Can you reproduce?
Dockerfile:
FROM ibmjava:8-jre
RUN mkdir -p /opt/shinyproxy/
RUN wget https://www.shinyproxy.io/downloads/shinyproxy-3.0.1.jar -O /opt/shinyproxy/shinyproxy.jar
COPY application.yml /opt/shinyproxy/application.yml
WORKDIR /opt/shinyproxy/
CMD ["java", "-jar", "/opt/shinyproxy/shinyproxy.jar"]
UPDATE:
I deleted my comments on the templates as it seems this cannot be the root cause. This error seems to have nothing to do with custom templates at all.
Thank you for the additional information, unfortunately I was not able to reproduce the problem. I tried with both a Shiny app and a flask app, but the characters are correctly shown.
Could you share a minimal app that causes the issue? This would allow me to reproduce the problem and fix it.
Thank you for the repository, I was able to reproduce the problem. I can only reproduce the problem when using the ibmjava:8-jre base image. I tried several other base images and none of these cause any issue with UTF8:
The problem with this is that openjdk 19 is already EoL (Oracle JDK | endoflife.date) as far as I understand it and release 17 and 8 which are LTS have the same problem.
Is this something that was introduced with SP 3.0.1 or was it there prior as well? ie running v3.0.0 on java 17 or 8?
Edit: reading some other posts, just for clarity no template-path is defined. So it is using whatever is already integrated 3.0.1.
Hi all, since it seems this is not limited to the IBM JDK, I tested a bit more and I was able to fix this.
Could you please test the following development version and let us know whether it fixes the issue for you? We will be releasing a final version very soon.