How do I get spanish json files to work?

Get help using Construct 2

Post » Tue Jan 12, 2016 2:52 pm

Hi, I'm trying to get my program to be able to take in a JSON that has spanish content within it. I have already made an Chinese version of this simple tool and it works properly. However, when I switched the text sizing to one text box and replaced the Chinese characters in the JSON to Spanish, all I am getting is 0's. I have validated that the JSON is correct. Just in case there is confusion, the JSON is in a .cfm file that gets pulled into the game in a string fashion. I guess. Sorry, if I'm not saying any of this right :( Here's what I have, any help would be appreciated!

Image --- Example of 0's

drive.google.com/file/d/0BwqzPXQy19FsTGRBTWZKRzJhSjQ/view?usp=sharing --- .CAPX

drive.google.com/file/d/0BwqzPXQy19FsNFl3a1VlcTVUdUU/view?usp=sharing ---- CFM File

Just add the https:// in front of gdrive links.
B
3
Posts: 9
Reputation: 191

Post » Tue Jan 12, 2016 8:59 pm

Are you trying to import this directly into the C2 array, because you have a cfm tag on top that will cause your import to fail.

<cfprocessingdirective pageencoding = "utf-8"/>

this line needs to go, or it will not import.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"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,415
Reputation: 4,824

Post » Thu Jan 14, 2016 1:49 pm

Sorry for the delay, yes I am trying to get it to go into a C2 array. I did not have that coldfusion tag there before and it still wasn't working. I recently added that because it was fixing all of the special characters. When I inspect element on the page that has my widget, the json is loaded. But none of it gets into the widget itself.
B
3
Posts: 9
Reputation: 191

Post » Thu Jan 14, 2016 3:59 pm

I managed to get it working, I decided to ditch the .cfm file and go back to just a json. Thanks you for your help though!
B
3
Posts: 9
Reputation: 191

Post » Fri Jan 15, 2016 12:55 am

Yea, I've never worked with cfm, but it sounds shady.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"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,415
Reputation: 4,824


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi, Yahoo [Bot] and 27 guests