elsa-workflows / elsa-workflows/elsa-core
Pretty JSON view escapes Unicode characters
- Dominant language
- C#
- Stars
- 7.9k
- Forks
- 1.5k
- Avg merge
- 15h 22m
- Merged PRs (30d)
- 114
Description
## Description
When JSON is displayed in the **Pretty** view, non-ASCII characters are shown as Unicode escape sequences.
For example, Danish characters such as `Æ`, `Ø`, and `Å` are displayed as `\u00C6`, `\u00D8`, and `\u00C5`.
When switching to the **Raw** view, the same characters are displayed correctly.
## Steps to Reproduce
1. Open a workflow or workflow execution containing JSON with non-ASCII characters, for example Danish characters such as `Æ`, `Ø`, or `Å`.
2. Open the JSON viewer.
3. Select the **Pretty** view.
4. Observe that the characters are displayed as Unicode escape sequences, for example `\u00C6`.
5. Switch to the **Raw** view.
6. Observe that the same characters are displayed correctly.
**Reproduction Rate:** Every time.
## Expected Behavior
The **Pretty** view should display Unicode characters as readable text, the same way as the **Raw** view.
Example:
```json
{
"name": "Æ"
}
```
## Actual Behavior
The **Pretty** view displays Unicode characters as escaped Unicode values.
Example:
```json
{
"name": "\u00C6"
}
```
## Additional Context
This makes JSON containing non-ASCII characters harder to read in the **Pretty** view, even though the underlying JSON data is correct and displayed properly in the **Raw** view.
Contributor guide
Assessment
This issue has not been assessed yet.