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
22
S
6
G
1
Posts: 1,418
Reputation: 4,830

Post » Mon Oct 19, 2015 5:34 pm

Using notepad++ to open the exported runtime.js and data.js, it says utf-8.
B
92
S
32
G
109
Posts: 5,291
Reputation: 70,993

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
398
S
236
G
88
Posts: 24,428
Reputation: 194,600

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
22
S
6
G
1
Posts: 1,418
Reputation: 4,830


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests