Closed kshitizwagle closed 4 months ago
I'd guess it's either fonts or some default encoding is wrong.
Here some chatgpt guidance:
Check Docker Container Locale Settings:
Ensure that the locale settings in your Docker container are set correctly. You can check this by running locale
inside your Docker container. If the locale is not set correctly, you can set it by adding the following lines to your Dockerfile:
RUN apt-get update && apt-get install -y locales
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
Verify Fonts Installed in Docker Container: Make sure the necessary fonts are installed in your Docker container. You can install common fonts using:
RUN apt-get update && apt-get install -y fonts-dejavu
You might need to install additional fonts based on your requirements.
Use Docker's Environment Variable for Java Encoding: Set the environment variable in your Dockerfile to ensure Java uses the correct encoding:
ENV JAVA_TOOL_OPTIONS "-Dfile.encoding=UTF-8"
thanks, i tried a bunch of things, ended up replacing NBSP from the code itself, it ain't elegant but it works right now, will do few experiments!
Hi, I'm using this service, inside a docker container, am good with the conversion but instead of
 
(html space character) (is totally my guess), am getting this weird characterÂ
It works fine on my WSL but has issues while in docker container, my assumption is that it is something to do with fonts?Posting images with difference on WSL and docker
Any help would be appreciated