moacirrf / netbeans-markdown

This plugin adds some additional features to Apache Netbeans Markdown Editor. Preview, Split Window, Suggestion, Export to DOCX, PDF and HTML
https://github.com/moacirrf/netbeans-markdown
GNU General Public License v3.0
16 stars 1 forks source link

Russian letters are displayed incorrectly in a file with UTF-8 encoding #67

Open proffix4 opened 8 months ago

proffix4 commented 8 months ago

Снимок экрана 2024-02-20 101316

proffix4 commented 8 months ago

README.md

proffix4 commented 8 months ago

TSN_Java_Lab1_2_2024

Создание простейшей визуальной программы на JAVA

screenshot

moacirrf commented 8 months ago

Hi, thanks for notification, i will try to fix.

moacirrf commented 8 months ago

Its working on Linux( Fedora Kinoite), i will try on a windows VM soon, can you inform me:

thanks

proffix4 commented 8 months ago

Apache NetBeans 20, Windows 11, JDK17

moacirrf commented 7 months ago

Hi Strange, unfortunately i can't replicate this error. I tried Netbeans 20,21 with oracle JDK 17, 18 and Open JDK, Windows 11 I will keep this issue open.

proffix4 commented 7 months ago

У меня русский Windows 11 с кодировкой windows-1251 по умолчанию системыОтправлено с устройства Galaxy -------- Исходное сообщение --------От: Moacir da Roza Flores @.> Дата: 05.03.2024 22:42 (GMT+05:00) Кому: moacirrf/netbeans-markdown @.> Копия: "Talipov S.N." @.>, Author @.> Тема: Re: [moacirrf/netbeans-markdown] Russian letters are displayed incorrectly in a file with UTF-8 encoding (Issue #67) Hi Strange, unfortunately i can't replicate this error. I tried Netbeans 20,21 with oracle JDK 17, 18 and Open JDK. I will keep this issue open.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

hajdam commented 1 day ago

Hi, I believe this is usually caused when binary to text conversion happens while encoding is not specified - in such case default encoding used by system is used which might behave differently for each user.

I believe NetBeans detects encoding of file and also has support for setting project specific encoding, so probably best approach would be to read charset from project somehow :-/ Or at least specify some charset. I could try to find out more if you want...

Calls with unspecified charset I spotted: