blumi

Changes in Germen "umlaute" after compiling

14 posts in this topic

When I compile a autoit script with the new version 3.8.14.1 my comments in the code get modified.

For example

Lokale Konfiguration prüfen 

will be changed to

Lokale Konfiguration prüfen

I don't want this modification, what can I do?

Share this post


Link to post
Share on other sites



Without seeing your cody it is impossible to help. 


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

I don't think this has something to do with the code.

After compiling the script, the changes are made by the editor or autoit.

 

Of course you can have some code...

 

; Lokale Konfiguration prüfen (Configfile liegt im Scriptverzeichnis)
If (FileExists(@ScriptDir & "\" & $ConfigFile)) Then
    $config = @ScriptDir & "\" & $ConfigFile
Else
    ; Netzwerkkonfiguration (Configfile liegt auf dem Server im Pfad \Administration\AutoIt\ von dem das Script ausgeführt wird)
    Dim $SplitDrive, $SplitDir, $SplitFileName, $SplitExtension
    $SplitPath      = _PathSplit (@ScriptFullPath, $SplitDrive, $SplitDir, $SplitFileName, $SplitExtension)
    $SplitServer    = $SplitPath[1]
    $config             = $SplitServer & $ConfigPfad & $ConfigFile
EndIf

;MsgBox(0, $ScriptName, "Config: " & $config)



; Konfiguration einlesen und Server definieren
If (FileExists($config)) Then

    ; Anzahl der Einträge im Bereich IP feststellen
    $aArray = IniReadSection($config, "IP")
    $counter = $aArray[0][0]

    ; Übereinstimmung der eigenen IP Adresse und den Vorgaben aus dem INI File überprüfen
    For $i = 1 To $counter
        If (StringInStr (@IPAddress1, $aArray[$i][1])) OR (StringInStr (@IPAddress2, $aArray[$i][1])) Then

            ; Standord aus dem Array auslesen. Das = Zeichen im String FR=10.112. trennt die Werte in Spalten
            $standort = $aArray[$i][0]

            ; Server anhand von $standort auslesen
            $server = IniRead ($config, "Server", $standort, "Fehler")

            ; OU definieren anhand vom Standort
            If($standort = "FR") Then
                $ou = "OU=Workstations,DC=emi,DC=fhg,DC=de"
            ElseIf($standort = "EK") OR ($standort = "KA") Then
                $ou = "OU=Workstations,DC=wiwei,DC=emi,DC=fhg,DC=de"
            EndIF

        EndIf
    Next

    ; Serverpfad anpassen, für weitere Verwendung
    $Server = "\\" & $server & "\"

Else
    MsgBox (16, $ScriptName, "Die Konfigurationsdatei " & $config & " wurde nicht gefunden.")
    Exit(1)
EndIf

 

Share this post


Link to post
Share on other sites

Switch SciTE to UTF8: File > Encoding > UTF8

add space anywhere, remove space then save.


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)

Share this post


Link to post
Share on other sites

Okay, the setting is the right one.

When I change to UTF8 all is fine, but after comiling a script, the setting is set back to "Code Page Property"

Should this not be saved after I changed to UTF8 ??

Share this post


Link to post
Share on other sites

Add this line to SciTE > Options > Open User Options File :

NewFileEncoding=UTF8

Now every new file will be UTF8 by default.


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)

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

No changes.

After compiling the script Scite refreshes the script and goes back to "Code Page Property" and shoes all "ü" as "ü"

Okay, new Files are set to UTF8 I have seen.

But when I edit an old one I have still the problems.

Edited by blumi

Share this post


Link to post
Share on other sites

Are you running the latest SciTE4AutoIt3 ?


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)

Share this post


Link to post
Share on other sites

AutoIT 3.3.14.1

Scite 3.5.4

With older versions never had such a problem, it's the first time.

Share this post


Link to post
Share on other sites

I never met the problem with recent versions and all my files have been UTF8 for years so I don't see what I could advise. Try asking Jos.


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)

Share this post


Link to post
Share on other sites

We seem to have 2 threads running with an issues like this.

Please try the current SciTE beta version 3.6.0 to see if that works for you.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

BETA has the same problem.

Are there some Downloadlinks for Scite version < 3.5.4 ?

I want to switch back.

Share this post


Link to post
Share on other sites

Could you add these in your SciTEUser.properties and try again?:

NewFileEncoding=UTF8
utf8.auto.check=4

 

Works fine, thanks for the help

 

Share this post


Link to post
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