API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Json.Stringify not parsing the spanish json

    Posted Wed March 08, 2023 09:05 AM

    Json.strinfy is not able to parse a json object to string whic contains specail spanish charater like "año"

    how to convert the response from backend call to a string where the response is a json with spanish content with English it works fine



    ------------------------------
    Rahul Kumar
    ------------------------------



  • 2.  RE: Json.Stringify not parsing the spanish json

    Posted Thu March 09, 2023 03:17 AM

    I'm not sure this is really APIC specific.

    Make sure your backend API is returning a content type that says it is UTF8, and then JSON stringify should handle it correctly. e.g. 

    Content-type: application/json; charset=utf-8


    ------------------------------
    Chris Dudley
    ------------------------------