Jump to content

SciTE4AutoIt3 - encoding/input problem


TNO
 Share

Recommended Posts

Hello,

I've just switched to Windows 10 (from Windows 8.1) and latest AutoiT (and SciTE4AutoIt3 from version 3.4.1 :/ ) version.

Everything works smoothly except one issue in SciTE4AutoIt3 editor.

I'm using Polish localized Windows and all applications. The files encoded in ANSI displays with no Polish special characters like ąćęłńóśżź. Instead of that we have ¹æê³ñ󜿟.
It simply means that default codepage for the ANSI file is Western. In addition the keyboard input is also switched to Western (no Polish characters).
UTF files works fine.

I've tried several settings with code.page and so on with no success.

From the other hand, my old version of SciTE (3.4.1) works fine, polish characters are displayed and input works as it should be.

I have done a test by putting SciTEGlobal.properties file from old version to new version installation directory. The effect is that ANSI file is displayed properly but keyboard input is still in Western mode.

Looking for AutoIt / SciTE proffesional to help me with this annoying "feature". I don't want to switch to other editor because I love SciTE other functions like debugging and tidying.

Link to comment
Share on other sites

  • Developers
18 minutes ago, TNO said:

Looking for AutoIt / SciTE proffesional to help me with this annoying "feature".

mmm professional help ....   guess I do need to setup that hotline for support and charge an hefty fee. :)

As to your issue: Have you checked what the encoding is when you open the files that is displayed wrong as thye default has changed from ANSI to UTF8 w/o BOM unless highvalue ANSO characters are found in the file? Check under file/encoding what it is for that file.
As to defaults for ANSI codepage: there are several setting in SciTEGlobal.properties which you could override by specifying your own defaults in SciTEUSer.properties. Don't do that in SciTEGlobal.properties as that file is updated with each release.

Look in the at the SciTE documentation page for these keywords:

  • code.page
  • output.code.page
  • character.set

Jos

 

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

I'd rather suggest you use UTF8 instead to avoid surprises.

Codepages are evil.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

4 hours ago, jchd said:

I'd rather suggest you use UTF8 instead to avoid surprises.

And I'm using it wherever I can. The problem was with old (but still working) script file and SciTE editor not the AutoIt runtime.

Kind regards!

Link to comment
Share on other sites

To convert an old source file from locale codepage to UTF8, open it, change encoding to UTF8 (File > Encoding > UTF8), apply a dummy change (add space then remove it) and save it.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

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...