]> Sergey Matveev's repositories - public-inbox.git/blobdiff - Documentation/design_www.txt
huge refactor of encoding handling
[public-inbox.git] / Documentation / design_www.txt
index 226a22c9704b427ddea9620a27be9a6888043923..a265a890bd21ec36c364f73087610428686ba4d7 100644 (file)
@@ -13,6 +13,9 @@ URL naming
 /$LISTNAME/f/$MESSAGE_ID                        -> 301 to .html version
 /$LISTNAME/f/$MESSAGE_ID.txt                    -> 301 to m/$MESSAGE_ID.txt
 
+FIXME: we must refactor/cleanup/add tests for most of our CGI before
+adding more endpoints and features.
+
 Maybe TODO (these might be expensive)
 -------------------------------------
 /$LISTNAME/t/$MESSAGE_ID.html                   -> HTML content of thread
@@ -21,6 +24,15 @@ Maybe TODO (these might be expensive)
 We use file name suffixes on all of these (except /) so URLs may easily
 cached/memoized using a static file server.
 
+Encoding notes
+--------------
+
+Raw HTML and XML should only contain us-ascii characters which render
+to UTF-8.
+
+Plain text (raw message) endpoints display in the original encoding(s)
+of the original email.
+
 Guidelines for using limited HTML
 ---------------------------------
 We mainly use HTML for linking pages together with <a>.