[Data Grid] In Japanese, the headers is garbled when saved configs and redisplayed.

Forge Component
(34)
Published on 12 Feb (5 days ago) by OutSystems R&D
34 votes
Published on 12 Feb (5 days ago) by OutSystems R&D

Hi there,

As shown in the attached capture, In Japanese, the headers is garbled when saved configs and redisplayed. Is there a solution?

Before redisplay


After redisplay


Best Regards,

Kosuke Ogawa

Solution

Self-solve with the following methods!

  1. Clone DataGridComponent (rename to DataGridComponentJp)
  2. Logic > Server Action > SaveGridConfigurations > TextToBinaryData > Encoding > "utf-8"
  3. Interface > GridScirpts > GridFramework > JavaScript > 
        loadConfig: function(gridId) {
            ...
            var url = "/DataGridComponentJp/rest/Configurations/...
            ...
        saveConfigHttpRequest: function(gridId, successMessage, errorMessage) {
            ...
            var url = "/DataGridComponentJp/rest/Configurations/...
            ...
        resetConfigHttpRequest: function(gridId, successMessage, errorMessage) {
            ...
            var url = "/DataGridComponentJp/rest/Configurations/...
  4. Publish & Manage Dependencies...


Solution

If I change this to unicode, does this mean I will be able to view that datatype within the tables as well? Currently I am having issues as records with unicode hyphens are not displaying.