New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non latin symbols replaced with ????
after formatting in Windows 10.
#22
Comments
Solution: djlint/djLint#243 (comment). EDIT: This solution is bad. Update djLint to version 1.1.1 or higher to fix the issue. |
Yikes it worked :D |
Thats windows for ya 🤣 |
Nah I work on Linux and MacOS, but my colleague are not. I've tired of seeing unformatted templates so :D |
OK, after enabling |
I'll dust of my windows and take a look tomorrow as well. Do you have a small sample code? I'll try w/ |
{% extends 'base.html' %}
{% load i18n django_bootstrap5 %}
{% block content %}
<div class="col-4 offset-4 card">
<div class="card card-body">
<form method="post">
{% csrf_token %}
{% bootstrap_form form %}
<button class="btn btn-primary" type="submit">{% trans "Вход" %}</button>
</form>
</div>
</div>
{% endblock content %} This one will do I guess notice the |
Perhaps this will help solve the issue. I'll do it today when I'm at home. |
@christopherpickering |
The extension does not launch a shell, but launches Python directly. |
Windows is being pretty persistent. The colorize library was also allowing windows to tweak the encoding.. so I need to do another update the djlint to ensure the output is passed to the printer as utf8. I was able to get it to work in vscode, I'll test a bit more and see if anything needs to be pr'ed. |
Amazing! Thank you very much! I will later write in README.md that djLint version 1.1.1 or higher is required to fix this issue. |
No problem, thank you! |
Solution - update djLint to version 1.1.1 or higher. |
Hey, guys! We've just checked the update on two machines, one with winduz 10 another with 11. In both cases everything works flawlessly. Thanks for your effort! Really appreciated. |
Nice! |
If template contains non ASCII symbols after formatting they're replaced with
?
characters. Running djLint directly from command line does not have this issue. So I guess it's somewhere in extension. File encoding isutf-8
, OS is Windows 10. In Linux and MacOS everything works as expected.The text was updated successfully, but these errors were encountered: