What character encoding does Construct2 use?

Just started using Construct 2? Post your questions here

Post » Mon Oct 19, 2015 4:25 pm

Particularly for Text objects for HTML5 exports. Or more specifically in @Kyatric 's CBhash plugin.

UTF-8? or UTF-16?

This post seems to indicate that JavaScript is usually in UTF-16.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Mon Oct 19, 2015 5:34 pm

Using notepad++ to open the exported runtime.js and data.js, it says utf-8.
B
94
S
33
G
118
Posts: 5,394
Reputation: 75,849

Post » Tue Oct 20, 2015 10:26 am

Wherever there's a choice, C2 uses UTF-8. JS itself stores strings in memory in UTF-16 IIRC, but this doesn't mean anything saved/loaded or sent/received over the network is the same. Ideally that should all be UTF-8 too, but I think it partly depends on server/browser configuration.
Scirra Founder
B
402
S
238
G
89
Posts: 24,637
Reputation: 196,071

Post » Tue Oct 20, 2015 8:02 pm

Perfect, thanks.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests