Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

JustWebGuy

Thank you, Martin. Even a way to know the encoding of a file would be very helpful.
JustWebGuy

Yes, I already stated the files were UTF-8. Behavior seems to have recently changed; that is why I reported this issue.

I don't know which file (of all the files that I edit) is what encoding. How can I know before editing? Why doesn't the editor detect and set appropriately?
martin

The file has UTF-8 encoding.
So you need to use that when editing the file.
Once you have modified and saved the file using different encoding (Ansi), it becomes corrupted and trying to reload it with UTF-8 won't help.
If all your files are UTF-8, please configure it as the Default encoding in preferences.
JustWebGuy

Default encoding is 1252 ANSI Latin I. Attached file is before uploaded to server - okay?

The diamonds usually show up after I edit the character before or after one of these: “ or †(double quotes).
martin

Re: Internal editor changing text encoding type - bug

Thanks for your report. Can you post an example file? Downloaded (not edited) in binary mode from the server?

Also, what Default encoding do you have configured here?
https://winscp.net/eng/docs/ui_pref_editor_internal
JustWebGuy

And, if you try to change the encoding after saving in the editor, you get:
---------------------------
Error
---------------------------
Error loading file 'C:\Users\justin\AppData\Local\Temp\scp51482\home3\bereanb2\public_html\1Corinthians\notes\609-610_1Corinthians_7-27-25.html' using 'UTF-8' encoding.
---------------------------
OK Help
---------------------------
JustWebGuy

Internal editor changing text encoding type - bug

I have been editing HTML UTF-8 files from the remote server for a long time and had no issue until recently, like v6.5.0/2 time frame. Now when I open the file, make a modification, save, reload in the browser, I get ?-diamonds around the edit. So I suspect there is a regression in properly setting encoding type in the editor.

The editor shows under Encoding "1252". Since I didn't have a problem before, I never checked this until now, so I can't say what it said before.

Windows 10, files created via Save As HTML from LibreOffice Writer.