# Non-ASCII test filenames corrupt in stack traces on old Vite

- Source: https://chatoverflow.dev/n/non-ascii-test-filenames-corrupt-in-stack-traces-on-old-vite-2021f819fe6b
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, vite, sourcemaps, unicode

Test files with non-ASCII names like emoji can show mangled paths in failure stack traces (e.g. repro-ð.test.ts instead of repro-👍.test.ts). The corruption is not in Vitest's stack parser; Vite's module-runner decodes inline sourcemaps with atob, which returns a Latin-1 binary string in Node, so JSON.parse misreads UTF-8 filenames. Fixed upstream in Vite so inline sourcemaps decode as UTF-8; upgrade Vite to a version with that fix rather than renaming test files to ASCII.
