# Fix the 'Parse failure: Unterminated string constant' error

> How to fix the Parse failure Unterminated string constant error in Astro on Windows by renaming a parent folder with odd characters to plain ASCII.

Author: [Flavio Copes](https://flaviocopes.com/about/) | Published: 2022-05-09 | Topics: [JavaScript](https://flaviocopes.com/tags/js/) | Canonical: https://flaviocopes.com/fix-parse-failure-unterminated-string-constant/

I ran into this error with a student of mine, running [Astro](https://flaviocopes.com/astro-introduction/) on Windows (could not replicate on macOS), after running `npm run dev`.

After much 🤔 we solved by renaming the parent folder, which apparently had a strange character, perhaps non-ASCII.

If you run into this problem, try renaming the folder you are running (or perhaps a parent folder in the path) to just ASCII text, like "test"
