Html5 bundle and utf8

#1

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.

0 Likes

#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.

0 Likes

#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?

0 Likes

#4

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

0 Likes

#5

And with Build HTML5 option?

0 Likes

#6

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

0 Likes

#7

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

1 Like