Skip to main content

Glassfish and encoding of static txt file

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
PashaTurok
Offline
Joined: 2013-01-05

So I have file temp.txt - example.com/temp.txt. When I open it in browser I see broken encoding. Glassfish 4. I tried to put

and

in glassfish-web.xml but nothing helped. Does anyone know how to fix it? Best regards.