Encoding issue in Balena Cloud UI

Hi team,

The log viewer in the balenaCloud dashboard appears to decode device logs in no-UTF-8 (or at least not something we can change in settings), so any non-ASCII character in a log line renders wrongly

Symptom

My service logs a (U+203A) as a prefix on each line. In the dashboard it shows up as â°.

Evidence that the data is fine end-to-end

Same logs via the CLI, raw:

balena logs -f <uuid> | cat -v
^[[36m15:55:37.515^[[0m M-bM-^@M-:^[[0m Received GPS_POSE message^M

M-bM-^@M-: is E2 80 BA, which is correct UTF-8 for . So the supervisor and API are passing the bytes through cleanly. The mis-decode happens only in the dashboard’s log viewer.

Expected

Log lines decoded as UTF-8

@avanmalleghem interesting one; can you provide something we can use to reproduce on our end? I’m thinking even if it’s a simple container that spits out logs, like the below, can you provide something that exhibits the problem on your end?

FROM alpine:3.20

CMD while true; do \
      echo "things that dont decode correctly"; \
      sleep 5; \
    done

As simple as this:

FROM alpine:3.20

CMD while true; do \
      echo "›"; \
      sleep 5; \
    done