Change LC Server default output encoding?
Alex Tweedly
alex at tweedly.org
Wed Jun 8 18:46:44 EDT 2016
Well, I am no expert on .htaccess, but it does seem to be powerful, so .....
Instead of simply having ,htaccess use LCS for all htm/html files, can
it not rewrite the URL to run a particular LC script, and pass the
original URL name as a parameter? Then the LCS script can simply output
the relevant encoding statement, followed by the originally-requested
html file.
-- Alex.
On 08/06/2016 19:57, Richard Gaskin wrote:
> Mark Waddingham wrote:
>
> > On 2016-06-08 19:24, Richard Gaskin wrote:
> >> Is there a way to specify default output encoding with LC Server?
> >> Should there be? UTF-8 seems to be the most commonly used by other
> >> other systems.
> >
> > Take a look at the outputTextEncoding and the outputLineEndings
> > global properties - these control the format of text emitted by
> > LC Server.
>
> Thanks. Any way to set those from the command line or a config file?
>
> This poster's circumstance is definitely an edge case, but she's
> hoping to be able to serve legacy files in addition to those that have
> LC tags, with the intention of adding any specific functionality she
> needs later on, so for now an ideal solution would be one which
> doesn't require modifying each page:
>
> http://forums.livecode.com/viewtopic.php?f=15&t=27385
>
More information about the use-livecode
mailing list