Site-Text-Display Script
Description
Site-Text-Display is a simple perl script used to display text files (typically code) similar to
the way FireFox does for .cgi, .pl, .js, etc. extensioned files by default. It outputs files with
a Content-Type of 'text/plain' in the HTTP header, thus instructing all browsers to display the
selected file as mime type 'text/plain'. The output is Unicode utf-8 encoded text, as required for
displaying MobileSiteOS™ scripts and pages correctly.
Note: MobileSiteOS™ requires all scripts and pages be written using Unicode utf-8 encoding and be
loaded to the web server as such.
Features
- DTD XHTML Mobile 1.0 compliant output (error reporting, testing)
- Adjustable output window width (error reporting, testing)
- Text file output is 'Content-type: text/plain;'
- Script output is Encoded UTF-8 text either way
Reference