Jump to content

File encoding reverts automatically to "Code Page Property"


Recommended Posts

Thank you for the reply. I have installed the latest SciTE (4.4.6) as I mentioned earlier.

I added those values to SciTEUser.properties, made a new file, and copied the content to the new file. The Encoding under File menu reverts to "Code Page Property" if I close and open the file. The positive change is that the German characters are displayed correctly (I think because we set the codepage to 65001).

Link to comment
Share on other sites

  • Developers

That means that the content you paste contains a "High ASCII" character hence SciTE will revert to Ascii (code page property).

 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

The thing is that removing something from the problematic script could correct the issue and the part that is removed contains normal ASCII characters. The strange thing is that I had no issues with x86 version of the script until yesterday. The script I'm using has worked for many years without issues.

What would be the downside if my script contained "High ASCII" character and I used UTF-8 encoding?

 

Link to comment
Share on other sites

  • Developers
Posted (edited)

There is no answer to that question, as it is impossible!.

an utf8 without BOM encoded file will be read, and an encoding is assigned depending on its content. When you want to force the file encoding, you need to make it utf8 with BOM.

By the way: all ASCII high characters have their Unicode version too, which should be used instead when you want it to show as utf8.

Edited by Jos
mobile spelling mistakes

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...