Charset problems with .lc web page
alex at tweedly.org
Thu Dec 24 03:37:59 EST 2015
Sorry Tim, I should have been clearer - it is literally
$_SERVER["SCRIPT_FILENAME"] that you want to print.
That's one of the built-in $_SERVER variables, showing which 'cgi'
script (i.e. which version of the engine is running).
So you'll get something like
On 24/12/2015 08:33, Tim Selander wrote:
> Hi Alex,
> I added
> <?lc put $_SERVER["http://www.pba.on-rev.com/5_today.lc"] & "<br>" &
> CR ?>
> and also
> <?lc put $_SERVER["5_today.lc"] & "<br>" & CR ?>
> in the script but it didn't return any info.
> I'm using On-Rev, the server is sage -- so whatever installs they have
> is what I'm using. I do find it curious that the older .irev works
> while .lc does not!
> On 15/12/24 17:18, Alex Tweedly wrote:
>> Hi Tim,
>> I'm afraid I know little or nothing about charsets, so I can't
>> directly help :-)
>> The difference between .irev and .lc is which version of the server
>> engine they are running - and obviously that depends on your server
>> setup. So, to help with answering this, we (might) need to know which
>> versions are being used on your server.
>> You could add
>> put $_SERVER[" SCRIPT_FILENAME"] & "<br>" & CR
>> Presumably it will be a pre-Unicode and a post-Unicode version - but
>> knowing which ones might help someone answer your question.
>> -- Alex.
>> On 24/12/2015 07:55, Tim Selander wrote:
>>> Dear list,
>>> I'm having trouble making a .lc web pages correctly show the charset.
>>> I have two test files:
>>> They are identical except for the .lc/.irev file extensions, and
>>> also the <?lc ?> and <?rev ?> tags in the html.
>>> The .irev file correctly shows Japanese UTF8, the .lc file does not.
>>> Anyone else having problems with this? Can .lc files not handle
>>> charset correctly?
>>> Tim Selander
>>> Tokyo, Japan
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the Use-livecode