Quantcast
Channel: How do I do content encoding properly in node.js? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by Carter Allen for How do I do content encoding properly in node.js?

$
0
0

If you want it to be downloaded as a text file with the proper encoding, you should use the text/plain; charset=utf-8content type. Simply using text isn't enough. I just tested it and it works as expected. Change plain to html to make the browser use its default styles on the text.


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>