Character encoding using LC server on on-rev

Tim Selander selander at tkf.att.ne.jp
Fri Nov 22 15:26:59 CET 2013


This falls into the category of answering your own question, but 
I decided to post the answer just in case an archive search by 
someone with the same problem brings them here.

For some reason the normal charset command in the HTML <head> 
does not work in a .irev or .lc page. But if you put this at the 
top of your page before anything else is output, your page 
encoding is properly set:
<?lc
put header "Content-Type: text/html; charset=shift-jis"
?>

Have tested with shift-jis and utf-8 and both work fine.

FWIW

Tim Selander
Tokyo, Japan

On 11/21/13 11:14 PM, Tim Selander wrote:
> Thanks, Neil.
>
> A few hours after my post, when no one hear chimed in on the
> matter, I did decide to contact on-rev support to see if they
> could help, since we decided it was embarrassing to have users
> having browser text encoding problems on the couple of pages we
> use LC coding with.
>
> David Williams got right back to me and we're working on it
> together.
>
> Regards,
>
> Tim Selander
>
>
>
> On 11/21/13 8:06 PM, Neil Roger wrote:
>> Hi Tim,
>>
>> If this has only recently started to happen please contact our
>> on-rev support team who should be able to assist further-
>>
>> http://on-rev.com/support/contact-us/
>>
>> Kind Regards,
>>
>> Neil Roger
>>
>> --
>> RunRev Support Team ~ http://www.runrev.com
>> -
>>
>> On 21/11/2013 01:34, Tim Selander wrote:
>>> Hi,
>>>
>>> My Japanese .irev web pages are not loading with the right
>>> encoding anymore. I'm on the server pancake.
>>>
>>> My html header has this:
>>>     <head>
>>>         <meta http-equiv="Content-type" content="text/html;
>>> charset=shift-jis">
>>>
>>> There are no other charset commands anywhere in the page. But
>>> browsers are displaying the pages with Western ISO-8859-1.
>>>
>>> PHP has a header function that lets you set the charset; does LC?
>>>
>>> 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:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list