A simple pastebin
readthedocs-fr / bin-archive Goto Github PK
View Code? Open in Web Editor NEWA simple pastebin
License: MIT License
A simple pastebin
License: MIT License
In bin.html, some tags don't have quotes in their keyword arguments. Like type, id, method, charset arguments ; example :
<meta charset=utf-8>
<form method=POST>
<textarea name=code id=code
<input type=submit id=submit>
even though html is not sensitive, charset by example stay sensitive, code have to be converted to :
<meta charset="utf-8">
<form method="POST">
<textarea name="code" id="code">
<input type="submit" id="submit">
It would be nice to store the bins compressed in memory and to stream them as-is. Having them compressed in memory would reduce the memory usage. Streaming them as-is (with the suited http header) would reduce bandwidth usage. I know reverse-proxies are capable to compress the data on-the-fly but this is not CPU efficient, best is to have the data compressed already.
The encoding problem seems to be related to the way it is stored, as long as it doesn't come from the HTML meta charset tag.
When I wrote:
Ceci est un texte de test permettant de détecter un problème d'encodage certain
It then outputs:
Ceci est un texte de test permettant de détecter un problème d'encodage certain
And the HTML is:
<pre><code id="hlcode" class="lang-plaintext hljs">Ceci est un texte de test permettant de détecter un problème d'encodage certain</code></pre>
which confirms that the problem is not from the HTML meta charset tag
P.S.: Sorry for the stupid dummy text, I was not inspired
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.