Thanks, Kee.

Actually, I had found the reference to codepoint in the dictionary and tried it. But it seems to work the same as character -- breaking kanji. My test code is "put codepoint 500 to 550 of variable1" and the webpage shows: �。こうして夕があり、朝があった。� The beginning and ending kanji got split in half. Identical results to "put char 500 to 550."

Tim Selander


On 2018/06/01 8:39, kee nethery via use-livecode wrote:

On May 31, 2018, at 4:33 PM, Tim Selander via use-livecode 
<use-livecode@lists.runrev.com> 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.
Yep, “char" is no longer the thing to use. Use “codepoint”.
        put codepoint 1 of variable1

Kee Nethery


_______________________________________________
use-livecode mailing list
use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to