Html5 bundle and utf8

Something happend to utf8 in html5. I was using https://github.com/Stepets/utf8.lua 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:

http://dev.low-entropy.com/static/test/index.html

test.zip (15.3 KB)

UPD: It works in 162 version of Defold.

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.

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?

I’ve created a html5 bundle from the Editor menu Project -> Bundle -> Html5 Application, Debug variant with every checkbox left empty.

And with Build HTML5 option?

Doesn’t work either. I’m building on Windows. Maybe that’s the case.

It looks similar to Missing Font and Cyrillic characters shows not correct in the bundle (1.2.163)

1 Like