For partners that build or integrate commercially available applications and service solutions with the Oracle Cloud Platform
For partners that provide implementation or managed services around Oracle Cloud Applications
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 🍔 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.
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?
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
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
I can confirm that copy/pasting does work on this environment but we can't get them to appear when specified via API
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
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...
That's just because a single \ needs to be escaped for it to be valid JSON
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}}"
}
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
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
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}}"
}