UTF8 on LC server

Alex Tweedly alex at tweedly.net
Thu May 31 19:57:32 EDT 2018


Hi Tim,

which version of LC engine are you using on the LC Server ?

( and which version on the desktop? )

Alex.


On 01/06/2018 00:33, Tim Selander via use-livecode wrote:
> Thanks, Warren.
>
> Yes, I've got that header set up, and UTF8 is working fine, pages look 
> great. But LC server is not handling character chunking in variables 
> the same way as LC desktop. In desktop, I can say "put char 1 of 
> variable1" and I get a Japanese kanji. In LC Server, I only get half a 
> kanji. "Word" chunks are also not working. Items and lines are OK.
>
> I never got the hange of all the encodes and decodes needed for 
> Japanese in LC 6 and earlier... but does LC server require those kinds 
> of text manipulations?
>
> Tim Selander
> Tokyo, Japan
>
> On 2018/06/01 6:43, Warren Samples via use-livecode wrote:
>> On 05/31/2018 06:43 AM, Tim Selander via use-livecode wrote:
>>> Is there any way to get LC Server to handle double-byte characters 
>>> the same way LC desktop does?
>>>
>>> Tim Selander
>>> Tokyo, Japan
>>
>> LC Server serves pages with a default "Content-Type" header of:
>>
>>         Content-Type: text/html; charset=iso-8859-1
>>
>> That would prevent the display of Japanese characters.
>>
>> Try putting:
>>
>>         put header "Content-Type: text/html; charset=utf-8"
>>
>> at the top of your lc pages after the <?lc and before any other content.
>>
>> See if this solves your problem.
>>
>> Good luck,
>>
>> Warren
>>
>> _______________________________________________
>> 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