zohodesksdk utf-8 encoding issue

zohodesksdk utf-8 encoding issue

Hi Team,

Whenever I create multilingual ticket via zohodesksdk-1.1.0.jar the characters lets say in hindi gets replaced with ????,  So I did some decompiling and found out that below line was the issue:

InputStream responseStream = HttpClient.getInstance().callAPI(APIConstants.HttpMethods.POST,requestURL.toString(), new ByteArrayEntity(payloadData.toString().getBytes()), this.mailId);


Above line should be like below in order to maintain utf-8 encoding:

InputStream responseStream = HttpClient.getInstance().callAPI(APIConstants.HttpMethods.POST,requestURL.toString(), new ByteArrayEntity(payloadData.toString().getBytes("UTF-8")), this.mailId);



    Access your files securely from anywhere

        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 Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • 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