How to create a tree list that suports unicode on windows?

Describe the problem/error/question

I want to create a tree list of a directory but the problem is if the folder uses non-english or special characters it’ll display as ?. I used Execute Command Node to run chcp 65001>nul && tree “C:\Users\Administrator\Desktop\OST\Complete[Nemuri] Kiyoura Natsumi 清浦夏実 (2007-2026) [FLAC]” /f /aIt display fine if I run it locally on windows cmd & change the font but it doesn’t work inside n8n as it doesn’t seem to use the font that windows cmd is configured to use. So I’m just wondering is there a fix or alternative way to create a tree list that supports unicode on windows?

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 2.19.5
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: Windows Server 2022

Can you try this, @Ruriko ?

Could you update it to make it work if path contain single quotes or double quotes?