Tim Selander wrote:
> When I first tried your tip, it didn't work for me. But when I looked at the
> tutorial you linked to, I saw that the
>
> was the very first line of the .lc file, before or anything else.
>
> When I tried that, it worked great!
Thanks for letting us know.
I’ll strive to
Hi Lyn,
When I first tried your tip, it didn't work for me. But when I looked at
the tutorial you linked to, I saw that the
was the very first line of the .lc file, before or anything else.
When I tried that, it worked great! I had been inserting the command:
put header "Content-Type: text/h
Tim Selander wrote:
> 1) --> must be the first line
> of the .lc
> 2) set the outputTextEncoding to native --> must be the first line of the
> first script in the file
>
> If you put "set the outputTextEncoding to native" later in the script, UTF-8
> above that line will be garbled; afte
Tim,
I’m still using “.rev” most of all time, but I have to use “.lc” when I use a
stack.
--
Kenji Kojima / 小島健治
http://www.kenjikojima.com/
> On Jan 5, 2016, at 9:08 AM, Tim Selander wrote:
>
> Kojima-san,
>
> Thank you! Your instructions worked perfectly.
>
> For the others:
> 1) -->
Hi Peter,
Thanks for the tip. However, it didn't seem to do anything for
me. According to the trick Alex told me about getting the server
version, the On-rev account I'm using has livecode-server-6.6.2
installed.
FWIW, Kojima-san's tip worked great; it's in another post in this
thread.
Ap
Kojima-san,
Thank you! Your instructions worked perfectly.
For the others:
1) --> must be the
first line of the .lc
2) set the outputTextEncoding to native --> must be the first
line of the first script in the file
If you put "set the outputTextEncoding to native" later in the
script,
Tim,
> > The .irev file correctly shows Japanese UTF8, the .lc file does not.
I wrote about it in Japanese.
http://kenjikojima.com/basic_iRev/main/rev11.html
http://kenjikojima.com/basic_iRev/
--
Kenji Kojima / 小島健治
http://www.kenjikojima.com/
___
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:
> http://www.pba.on-rev.com/5_today.lc
> http://www.pba.on-rev.com/5_today.irev
>
> They are identical except for the .lc/.irev file extensions
Tim Selander wrote:
> But I tried it, and it didn't solve the problem with .lc & . However,
> without fail, using .irev as the filename extension and tags in the
> web page show utf8 Japanese correctly -- so I am content to use those.
> Problem solved, as far as I'm concerned.
The “put header
Hi Lyn,
Thanks for the tip.
But I tried it, and it didn't solve the problem with .lc & ?>. However, without fail, using .irev as the filename extension
and tags in the web page show utf8 Japanese correctly
-- so I am content to use those. Problem solved, as far as I'm
concerned.
Thanks!
T
Hi Alex,
Got it!
The .lc file shows:
/usr/local/cpanel/cgi-sys/livecode-server-6.6.2
The .irev file shows
/usr/local/cpanel/cgi-sys/ireviam-engine
And the .irev file continues to show utf-8 (Japanese) correctly
while the .lc file does not. Actually tested it with the exact
same file, simply
Lyn Teyla wrote:
> Try inserting the following 3 lines right at the top of your .lc script,
> leaving everything else untouched:
>
> put header "Content-Type: text/html; charset=utf-8"
> ?>
There was a slight typo (missed the quotes); try this at the top of the script:
Lyn :)
_
Tim Selander wrote:
> I'm having trouble making a .lc web pages correctly show the charset.
> Anyone else having problems with this? Can .lc files not handle charset
> correctly?
Try inserting the following 3 lines right at the top of your .lc script,
leaving everything else untouched:
Hope
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
/usr/local/cpanel/cgi-sys/livecode
Hi Alex,
Thanks.
I added
http://www.pba.on-rev.com/5_today.lc";] & "" & CR ?>
and also
" & 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 d
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 whi
Dear list,
I'm having trouble making a .lc web pages correctly show the charset.
I have two test files:
http://www.pba.on-rev.com/5_today.lc
http://www.pba.on-rev.com/5_today.irev
They are identical except for the .lc/.irev file extensions, and also
the and tags in the html.
The .irev file
17 matches
Mail list logo