Django-ckeditor5 showing question mark instead of symbols
hi recently i switched to django-ckeditor5 and in the HTML code I'm using this -
my_project/
│── manage.py
│── my_project/
│── app/
│ │── models.py
...
...
but after saving code it is displaying like this
my_project/
??? manage.py
??? my_project/
??? app/
? ??? models.py
...
...
why │── is replaced by ?. in development server it is showing correctly but in production there is issue that is coming.
Ensure you are using UTF-8 in django setting.
Ensure your Django settings (settings.py) include:
FILE_CHARSET = "utf-8"
DEFAULT_CHARSET = "utf-8"
Also check CKEditor Configuration In your settings.py, ensure CKEditor is correctly configured for UTF-8:
CKEDITOR_CONFIGS = {
"default": {
"toolbar": "full",
"extraPlugins": ",".join(["codesnippet"]),
"codeSnippet_theme": "monokai",
"entities": False, # Ensure entities are not auto-converted
}
}
Setting "entities": False prevents automatic character escaping.