Quantcast
ESOUI - View Single Post - [open] utf8.char() game crash
View Single Post
04/17/20, 08:34 AM   #1
Scootworks
 
Scootworks's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2014
Posts: 289
[open] utf8.char() game crash

UTF8 functions dosn't work properly



utf8.codepoint
-> works "/script d(utf8.codepoint("Г"))" == 1043

utf8.charpattern
-> doesn't work properly "/script local str = "TЖ" for w in str:gmatch(utf8.charpattern) do d(w) end" == "T" and ignores the other char

utf8.offset
-> works "/script d(utf8.offset("Test", 1, 4))" == 4

utf8.len
-> works (or using ZoUTF8StringLength())

utf8.codes
-> doesn't work, returns: Attempt to access a private function 'anonymous' from insecure code. The callstack became untrusted 1 stack frame(s) from the top.

utf8.char
-> "/script d(utf8.char(1043))" CRASH



Ingame ticket# 200417-003814
__________________
EU Server - SŁĄuGhTerHĜuSe

Last edited by Scootworks : 04/17/20 at 09:20 AM. Reason: added examples
  Reply With Quote