Accessing widget from Zoho Creator IOS App returns non UTF-8 JSON Results

Accessing widget from Zoho Creator IOS App returns non UTF-8 JSON Results

I have a widget that works just fine on IOS (iphone Safari) as long as I am not using the Zoho Creator App on the iphone (don't have it installed).

But if I do install the default zoho creator IOS app and then access this widget from the App, then when I return the JSON data, the spanish accent characters don't return properly.

On firefox on the computer and chrome on the computer and safari on computer or IOS, all is well.

Only the JSON does not have the right character encoding inside the mobile app when I access the widget.

This is my code, is there a way to set a parameter to ask for a certain character encoding type?

But anyway, I just don't use the IOS app anymore, so I am fine for now, but something to look into.

This is what I have in my javascript.

ZOHO.CREATOR.init()
.then(function(data){
var queryParams = ZOHO.CREATOR.UTIL.getQueryParams();
var billid = queryParams.pid;
var billConfig = {
reportName: "Add_Invoice_Subform",
criteria: "(ID=="+billid+")",
page: 1,
pagesize: 20
}
ZOHO.CREATOR.API.getAllRecords(billConfig).then(function(response){
var recordArr = response.data;
for(var index in recordArr){
console.log(recordArr[index]);
}
result = JSON.parse(JSON.stringify(response.data));
console.log("result JSON normal: " + result);


document.getElementById("Console2HTML").innerHTML = result;

All the HTML browsers return all the spanish characters correctly like the ñ for example. 

But inside the Zoho app the ñ is not returned, instead it is a capital A with a squiggly line on top and then a +- character that is very strange.  Maybe it is UTF-16 or something.  I don't know.

I can give more info if needed.  But definitely something about the app and the way the app reads the data differently than a regular browser.

      Zoho Developer Community









                                Zoho Desk Resources

                                • Desk Community Learning Series


                                • Digest


                                • Functions


                                • Meetups


                                • Kbase


                                • Resources


                                • Glossary


                                • Desk Marketplace


                                • MVP Corner


                                • Word of the Day



                                    Zoho Marketing Automation


                                            Manage your brands on social media



                                                  Zoho TeamInbox Resources

                                                    Zoho DataPrep Resources



                                                      Zoho CRM Plus Resources

                                                        Zoho Books Resources


                                                          Zoho Subscriptions Resources

                                                            Zoho Projects Resources


                                                              Zoho Sprints Resources


                                                                Qntrl Resources


                                                                  Zoho Creator Resources



                                                                    Zoho WorkDrive Resources



                                                                      Zoho Campaigns Resources


                                                                        Zoho CRM Resources

                                                                        • CRM Community Learning Series

                                                                          CRM Community Learning Series


                                                                        • Tips

                                                                          Tips

                                                                        • Functions

                                                                          Functions

                                                                        • Meetups

                                                                          Meetups

                                                                        • Kbase

                                                                          Kbase

                                                                        • Resources

                                                                          Resources

                                                                        • Digest

                                                                          Digest

                                                                        • CRM Marketplace

                                                                          CRM Marketplace

                                                                        • MVP Corner

                                                                          MVP Corner





                                                                            Design. Discuss. Deliver.

                                                                            Create visually engaging stories with Zoho Show.

                                                                            Get Started Now