snakky
October 9, 2019, 12:46pm
1
Something happend to utf8 in html5. I was using GitHub - Stepets/utf8.lua: pure-lua 5.3 regex library library and it worked ok. But in the recent version of Defold it works on the local machine (from the Editor) and crushes in html5. I’ve attached test project and uploaded build to my server. It writes to console russian name in uppercase:
Diese Website steht zum Verkauf! low-entropy.com ist die beste Quelle für alle Informationen die Sie suchen. Von allgemeinen Themen bis hin zu speziellen Sachverhalten, finden Sie auf low-entropy.com alles. Wir hoffen, dass Sie hier das Gesuchte...
test.zip (15.3 KB)
UPD: It works in 162 version of Defold.
britzl
October 9, 2019, 1:50pm
2
I was about to say that there’s a difference in Lua version between HTML5 and other platforms (LuaJIT vs Lua 5.1) but saw
Strange.
britzl
October 9, 2019, 2:23pm
3
I tried Build HTML5 from editor v 1.2.163 on your test project and that worked. How is the example project on the URL you provided created?
snakky
October 9, 2019, 2:36pm
4
I’ve created a html5 bundle from the Editor menu Project -> Bundle -> Html5 Application, Debug variant with every checkbox left empty.
britzl
October 9, 2019, 3:49pm
5
And with Build HTML5 option?
snakky
October 9, 2019, 5:23pm
6
Doesn’t work either. I’m building on Windows. Maybe that’s the case.
AGulev
October 10, 2019, 2:04pm
7
1 Like