dosubot[bot] commented on issue #29677: URL: https://github.com/apache/superset/issues/29677#issuecomment-2247285886
<!-- Answer --> To address the issue of the broken page and garbled text when running the Superset development server at `http://localhost:9000`, you can follow these steps to ensure the correct character encoding is set: 1. **Set Environment Variables:** Ensure that the environment variables for character encoding are set correctly. Add the following lines to your shell configuration file (e.g., `.bashrc`, `.zshrc`): ```bash export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 ``` After adding these lines, reload your shell configuration: ```bash source ~/.bashrc # or source ~/.zshrc ``` 2. **Check Flask Configuration:** Ensure that Flask is configured to use the correct character encoding. Add the following line to your `superset_config.py` file: ```python JSON_AS_ASCII = False ``` 3. **Restart the Servers:** After making these changes, restart both the Flask server and the Webpack dev server: ```bash # Restart Flask server superset run -p 8088 --with-threads --reload --debugger --debug # Restart Webpack dev server npm run dev-server ``` These steps should help resolve the issue of garbled text due to incorrect character encoding <sup>[[1]](https://github.com/apache/superset/blob/master/docs/docs/contributing/development.mdx)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org