Output PrintLine - Words with accents

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nuno Lopes
    Junior Member
    • Jan 2024
    • 28

    Output PrintLine - Words with accents

    Hello community,

    I need your help. In the output below, it should return from the database: ["Farma Sa\u00fade;","Farma Bem Estar;"] but it is returning this ["Farma Saúde;","Farma Bem Estar;"]. Can anyone explain why this happens and how to fix it?

    Click image for larger version

Name:	image.png
Views:	81
Size:	42.3 KB
ID:	111633​​

    Click image for larger version

Name:	image.png
Views:	62
Size:	4.8 KB
ID:	111634

    Thanks,

    Nuno Lopes
  • lazovic
    Super Moderator
    • Jan 2022
    • 809

    #2
    Hi Nuno Lopes,

    You can not worry about it; such behavior is observed only when outputting the array directly.

    When you put values ​​with such symbols or a whole array with them into a certain field or transfer these values ​​somewhere to another service, they will be saved as original, without Unicode type.

    Comment

    • Nuno Lopes
      Junior Member
      • Jan 2024
      • 28

      #3
      Hi, lazovic

      Correct, but in this case you intended to pass the array to an API by calling the Send HTTP Request action. This is the payload that generates, and passes the unformatted array without accentuation.

      Click image for larger version

Name:	image.png
Views:	61
Size:	12.0 KB
ID:	111697

      However, I ended up resolving this case, with a change on the external system's endpoint side to receive ID and not the name, passing only ID in the array.​

      Now this: https://forum.espocrm.com/forum/deve...he-destination

      I can't solve it, I needed the API to have the Content Type with the UTF-8 option​.

      Comment

      • yuri
        Member
        • Mar 2014
        • 8444

        #4
        In the next version UTF8 characters will be unescaped in Send HTTP Request payload.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • Nuno Lopes
          Junior Member
          • Jan 2024
          • 28

          #5
          Thank You yuri

          Comment

          Working...