Re: Charset problems with .lc web page

2016-01-05 Thread Lyn Teyla
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

Re: Charset problems with .lc web page

2016-01-05 Thread Tim Selander
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

Re: Charset problems with .lc web page

2016-01-05 Thread Lyn Teyla
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

Re: Charset problems with .lc web page

2016-01-05 Thread Kenji Kojima
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) -->

Re: Charset problems with .lc web page

2016-01-05 Thread Tim Selander
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

Re: Charset problems with .lc web page

2016-01-05 Thread Tim Selander
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,

Re: Charset problems with .lc web page

2016-01-04 Thread Kenji Kojima
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/ ___

Re: Charset problems with .lc web page

2016-01-04 Thread Peter TB Brett
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

Re: Charset problems with .lc web page

2015-12-24 Thread Lyn Teyla
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

Re: Charset problems with .lc web page

2015-12-24 Thread Tim Selander
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

Re: Charset problems with .lc web page

2015-12-24 Thread Tim Selander
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

Re: Charset problems with .lc web page

2015-12-24 Thread Lyn Teyla
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 :) _

Re: Charset problems with .lc web page

2015-12-24 Thread Lyn Teyla
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

Re: Charset problems with .lc web page

2015-12-24 Thread Alex Tweedly
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

Re: Charset problems with .lc web page

2015-12-24 Thread Tim Selander
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

Re: Charset problems with .lc web page

2015-12-24 Thread Alex Tweedly
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

Charset problems with .lc web page

2015-12-23 Thread Tim Selander
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