From e6d24c3c97e30a1e513bc423eb6e7b79c4c5e1da Mon Sep 17 00:00:00 2001 From: "Geoffrey J. Teale" Date: Thu, 26 Nov 2020 16:14:56 +0100 Subject: [PATCH] fix unicode rendering in application logstreams --- .../tabs/log-stream-tab/log-stream-tab.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/packages/cloud-foundry/src/features/applications/application/application-tabs-base/tabs/log-stream-tab/log-stream-tab.component.ts b/src/frontend/packages/cloud-foundry/src/features/applications/application/application-tabs-base/tabs/log-stream-tab/log-stream-tab.component.ts index cc4a4f4bd7..8f207f162d 100644 --- a/src/frontend/packages/cloud-foundry/src/features/applications/application/application-tabs-base/tabs/log-stream-tab/log-stream-tab.component.ts +++ b/src/frontend/packages/cloud-foundry/src/features/applications/application/application-tabs-base/tabs/log-stream-tab/log-stream-tab.component.ts @@ -105,7 +105,7 @@ export class LogStreamTabComponent implements OnInit { msgColour = 'red'; bold = true; } - const messageString = this.colorizer.colorize(atob(messageObj.message), msgColour, bold) + '\n'; + const messageString = this.colorizer.colorize(decodeURIComponent(escape(atob(messageObj.message))), msgColour, bold) + '\n'; return timeStamp + ': ' + messageSource + ' ' + messageString; } catch (error) { console.error('Failed to filter jsonMessage from WebSocket: ' + JSON.stringify(error));