Field Service

Get Involved. Join the Conversation.

Topic

    Ross Coundon
    Using Supplementary Characters, Pictogram and EmojiAnswered
    Topic posted September 21, 2018 by Ross CoundonRed Ribbon: 250+ Points, tagged Configuration 
    79 Views, 11 Comments
    Title:
    Using Supplementary Characters, Pictogram and Emoji
    Summary:
    How to get strings to display emoji/pictogram
    Content:

    The 18C release notes state that emoji and pictograms can be used across OFSC.  However, we're unable to get them to display.

    We've tried specifying raw codepoint such as U+1F354, equivalent unicode such as &#x1F354 and 0x1F354 but the strings are just rendered as strings. How do should these be specified or is there a separate configuration item that tells OFSC to render the emoji?

    The release notes refer to the documentation but this feature isn't mentioned, as far as we can see.

     

     

    Version:
    18C Service Update 7

    Best Comment

    Ross Coundon

    Turns out it was an issue with Postman.

    This is how I solved:

    In Postman Pre-request Script

    let burger = String.fromCodePoint(0x1F354)
    pm.environment.set("burger", burger);

    In Postman body use that variable:

    {
        "resourceId": "Resource_1",
        "activityType": "GenericActivity",
        "duration": 30,
        "customerName": "{{burger}}"
    }

    Comment

     

    • Ross Coundon

      This could be due to this being an upgrade to 18C rather than a new system.  If so is there a way to enable this on existing systems?

    • Zsolt Tolgyesi

      Hi Ross,

      I did a test: typed 2740 into Word, selected it and pressed Alt+X which resulted a flower ❀. I copied the flower and inserted into the note of an activity in OFSC 18C, then both Manage and Mobility shown as a flower.

      So the question is how we can tell the system with codes to show a special character as the result.

      Regards,
      Zsolt

      • Ross Coundon

        Thanks for trying that out, Zsolt.  We're trying to pass the value in via the API but I'll try the copy/paste method too to see if it's activated on the instance

      • Ross Coundon

        I can confirm that copy/pasting does work on this environment but we can't get them to appear when specified via API

        • Zsolt Tolgyesi

          Great. So the next step is to look for this activity details by Core API.

          In the XML result formatted with "Pretty" contains the same flower, but switched to "Raw" I find "\u2740" as the value.
          Zsolt

          • Ross Coundon

            We've tried sending (using customerName as our field for testing this, temporarily)

            {
                "resourceId": "Resource_1",
                "activityType": "GenericActivity",
                "duration": 30,
                "customerName": "\\u01F354"
            }

            and we get:

            <html>
                <head>
                    <title>501 Not Implemented</title>
                </head>
                <body bgcolor="white">
                    <center>
                        <h1>501 Not Implemented</h1>
                    </center>
                    <hr>
                    <center>nginx</center>
                </body>
            </html>

            Interestingly, we're now getting that nginx error for every single request...

    • Ross Coundon

      Turns out it was an issue with Postman.

      This is how I solved:

      In Postman Pre-request Script

      let burger = String.fromCodePoint(0x1F354)
      pm.environment.set("burger", burger);

      In Postman body use that variable:

      {
          "resourceId": "Resource_1",
          "activityType": "GenericActivity",
          "duration": 30,
          "customerName": "{{burger}}"
      }

    • shankar

      Hi Ross,

      I wanted to understand if this feature would allow any of the HTML 5 dingbats in hex format only or can we send in decimal format as well?

      Thanks

      • Ross Coundon

        Hi Shankar 

        According to the release notes the support is for everything here:

        https://en.wikibooks.org/wiki/Unicode/Character_reference/1F000-1FFFF

        and

        https://en.wikipedia.org/wiki/List_of_emoticons

        Cheers,

        Ross