Hello,
I am using 1.134.0.2 win64 version.
When I open an UTF-8 file its encoding is wrongly detected as cp1254. I reload file as UTF-8 and still read encoding as cp1254.
I do not know such behavior of cudatext and just reporting in here.
I expected at least to read UTF-8 after I click reload as UTF-8.
BTW, Notepad++ file encoding is identified as UTF-8 at the time it is first opened.
Attached is a small video to better explain what I tried to explain above.
Thanks & Regards,
Ertan
Encoding detection: cp1254 is forced, not like in Notepad++
Encoding detection: cp1254 is forced, not like in Notepad++
- Attachments
-
- Media1.7z
- (990.99 KiB) Downloaded 82 times
-
- Posts: 392
- Joined: 01.12.2020 13:46
-
- Posts: 392
- Joined: 01.12.2020 13:46
-
- Posts: 392
- Joined: 01.12.2020 13:46
I just saw replies in the thread. Sorry for being late.
I have no problem opening firebird.trc file on Notepad++ (See attached picture). Indeed, there are some non printable characters in that file around line 6365, 6378. Probably bad saved data in database or something like that saved in trace file.
Thing is, I can still work with it on Notepad++ as UTF-8.
Moreover, I have another bigger SQL file (about 284MB received it today) which is identified as UCS-2 LE BOM by Notepad++ and CudaText still forces cp1254 displays file like hex and I cannot switch to UTF8. I can share that file compressed in earlier mentioned e-mail if needed.
Thanks & Regards,
Ertan
I have no problem opening firebird.trc file on Notepad++ (See attached picture). Indeed, there are some non printable characters in that file around line 6365, 6378. Probably bad saved data in database or something like that saved in trace file.
Thing is, I can still work with it on Notepad++ as UTF-8.
Moreover, I have another bigger SQL file (about 284MB received it today) which is identified as UCS-2 LE BOM by Notepad++ and CudaText still forces cp1254 displays file like hex and I cannot switch to UTF8. I can share that file compressed in earlier mentioned e-mail if needed.
Thanks & Regards,
Ertan
Here you can see non printable characters in that firebird.trc file attached.
I also attached SublimeText (UNREGISTERED) display of the file. SublimeText opens file as Western (Windows 1252) by default. If I switch to Turkish (Windows 1254) There is no broken data anymore and text is displayed correctly.
BTW, I really like how Notepad++ displays these non printable characters (reversed and hex coded) and have no problem using such files without breaking them. It would be great if such support is included in CudaText. I admit that I have no idea how difficult to achieve that.
I also attached SublimeText (UNREGISTERED) display of the file. SublimeText opens file as Western (Windows 1252) by default. If I switch to Turkish (Windows 1254) There is no broken data anymore and text is displayed correctly.
BTW, I really like how Notepad++ displays these non printable characters (reversed and hex coded) and have no problem using such files without breaking them. It would be great if such support is included in CudaText. I admit that I have no idea how difficult to achieve that.
- Attachments
-
- Unregistered version of SublimeText displaying same file
- image_2021-06-21_191810.png (7.08 KiB) Viewed 2019 times
-
- Line 6337
- image_2021-06-21_191327.png (6.45 KiB) Viewed 2019 times
-
- Line 6350
- image_2021-06-21_191256.png (5.26 KiB) Viewed 2019 times
-
- Posts: 392
- Joined: 01.12.2020 13:46
I think that Notepad++ does it wrong-- it shows 2 turkish chars 'ÇÝFT' as some hex codes but they are not valid UTF8 chars. CudaText detects that fact, Notepad++ does not. (Linux editors Pluma, Kate also detect it.)
Notepad++ shows xC7xDD (I think they are not valid utf8 chars).
you can 'heal' the file: command 'change encoding, no reload: utf8 bom'. and then save file.
Notepad++ shows xC7xDD (I think they are not valid utf8 chars).
you can 'heal' the file: command 'change encoding, no reload: utf8 bom'. and then save file.