-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Garbled UTF-8 characters in debug tab #5415
Copy link
Copy link
Closed
Labels
Description
Current Behavior
The debug tab decodes buffer data into the string text. This feature works with alphanumeric characters, but it cannot handle UTF-8 characters.
Expected Behavior
The debug tab decodes byte data into the UTF-8 string text correctly.
Steps To Reproduce
Import the following example flow
Example flow
[{"id":"b9b6ad4d68fee676","type":"inject","z":"46522061720ca2a7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":40,"wires":[["c394927215bb7d85"]]},{"id":"c394927215bb7d85","type":"function","z":"46522061720ca2a7","name":"function 1","func":"msg.payload = Buffer.from(\"Node-RED\");\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":160,"y":120,"wires":[["04d9e63ed23603e5"]]},{"id":"04d9e63ed23603e5","type":"debug","z":"46522061720ca2a7","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":200,"y":200,"wires":[]}]
Environment
- Node-RED version: v4.1.2
- Node.js version: v25.2.1
- npm version: v11.6.2
- Platform/OS: macOS 26.0.1 (25A362) on Apple M1 Macbook Air
- Browser: Google Chrome Version 143.0.7499.170 (Official Build) (arm64)
Reactions are currently unavailable