Jump to content
Fenzik

Scite4Autoit3 default encoding suggestion

Recommended Posts

Hello All!

i suggest to set default encoding in Scite4 for Autoit 3 to UTF 8 with Bom encoding, format recommended also in Autoit Help.

In last editor version, when i open new script, for example Czech characters (č, ř, ž) aren't correct.

So when i change Encoding to UTF 8 with Bom from Default Code page property state, everithing seems to be OK.

Thank you and sorry for potentialy duplicated content.

Fenzik

Share this post


Link to post
Share on other sites
2 hours ago, Fenzik said:

when i open new script, for example Czech characters (č, ř, ž) aren't correct.

You mean you open a new empty script and type these characters it is saved wrong, since the default is UTF8 without bom so would expect it to be that?

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

Share this post


Link to post
Share on other sites

When i open blank new script and type this characters, there are written as letters without typical language diacritics. So (č is showed as c), (ň is showed as n).

And characters are also saved like that.

And when i open new script, in File/Encoding submenu only item Code page property is checked, no any UTF 8 items.

When i check resp select one UTF 8 item from file/Encoding menu, everithing is OK, characters are shown correctly.

Share this post


Link to post
Share on other sites
Posted (edited)

So when you add this to your Scite Userconfig: (SciTE menu:Options/Open User properties file

NewFileEncoding=UTF8BOM

Things work correctly?

EDIT: and you are using the FULL version right, not the one supplied with the AUtoIt3 installer....right?

Jos

Edited by 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.
  :)

Share this post


Link to post
Share on other sites

Yes!

This work for opening blang editor and starting to type new script.

But it does'nt work when the new filename is passed to scite as argument.

Thank you so much..

Share this post


Link to post
Share on other sites
3 minutes ago, Fenzik said:

But it does'nt work when the new filename is passed to scite as argument.

I do not understand this statement:  What exactly do you do here?


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

Share this post


Link to post
Share on other sites

I'm mainly using Total Commander with tool, which redirects configured extensions to proper editors.

So when i hyt F4 on .txt file, i't opens in Metapad.

When i hyt F4 on .au3, it opens in full version of Autoit Editor.

And Shift+f4 is making new blank file of specifyed type.

So when i hyt Shift+F4, type the filename with .au3 extension (for example: test.au3), the redirecting tool takes the name written by me and passes it to Autoit editor as argument.

An when i do this, above discussed characters are stil wrong.

 

But when i run Scite without arguments, after editing my properties as you wrote, everithink is OK.

Thank you again.

Share this post


Link to post
Share on other sites

Ok, understand now.

So please try adding this option as well in your SciTEUser.properties file:

utf8.auto.check=3

.. and see if that changes it.

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

Share this post


Link to post
Share on other sites

I see indeed that an empty file defaults to "code page properties" in stead of the set option. 
As soon as you put a few characters in there, it will default to the correct set default.

Will have a look to see if I can find that issue or if this needs to be reported on the official website.

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

Share this post


Link to post
Share on other sites

Could you try this version of SciTE and remove the above settings from your SciTEUSer.properties file to see if the default behaviour is correct now?

Thanks
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.
  :)

Share this post


Link to post
Share on other sites

Unfortunately, no effect.

After replacing the scite.exe and removing above settings, the behaviour is the same as at the beginning..

Share this post


Link to post
Share on other sites

shoot ...  it was now working fine when opening an empty file, but you are right, when I type a command in CMD like "scite d:\temp\test3.au3" it still opens with a "code page" encoding...   going to check.


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

Share this post


Link to post
Share on other sites

Update the Beta version with one that seems to be working also when opened with a file on the commandline.

Could you give that a try?

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

Share this post


Link to post
Share on other sites

Is this the link, you send before?

It seems to don't work also in new document and also when using commandline...

Or is the beta somewhere else?

Share this post


Link to post
Share on other sites

In this case, it seems to me be the same as at the start of this topic.

I have no changes in config files.

And in both situations (empty documment / passed argument) is checked only Code page property.

It's not so big problem to switch it, it's only little detail, that would be nice to have automaticaly set.. :)

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

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By TheDcoder
      See this thread for info:
    • By nooneclose
      Why can I not click on either of my input fields?
      #Region ### START Koda GUI section ### Form= Global $Form1 = GUICreate("Form1", 730, 437, 192, 124) ;GUISetFont(14, 800, 0, "MS Sans Serif") GUISetBkColor(0xC0DCC0) Global $Label1 = GUICtrlCreateLabel("Enter your Password. UserName is auto filled", 62, 40, 604, 41, $SS_CENTER) GUICtrlSetFont(-1, 26, 800, 0, "MS Sans Serif") Global $Label2 = GUICtrlCreateLabel("User Name:", 120, 130, 604, 31, $SS_LEFT) GUICtrlSetFont(-1, 20, 800, 0, "MS Sans Serif") Global $Label3 = GUICtrlCreateLabel("Password:", 135, 210, 604, 31, $SS_LEFT) GUICtrlSetFont(-1, 20, 800, 0, "MS Sans Serif") Global $Input1 = GUICtrlCreateInput(@UserName, 274, 130, 185, 32) GUICtrlSetFont(-1, 14, 800, 1, "MS Sans Serif") Global $Input2 = GUICtrlCreateInput("Password", 274, 210, 185, 32, $ES_PASSWORD) GUICtrlSetFont(-1, 14, 800, 0, "MS Sans Serif") Global $OK = GUICtrlCreateButton("OK", 274, 270, 185, 57) GUICtrlSetFont(-1, 20, 800, 0, "MS Sans Serif") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $OK Global $UserName = GUICtrlRead($Input1) Global $PassWord = GUICtrlRead($Input2) ExitLoop EndSwitch WEnd ; Delete the GUI window GUIDelete()  
    • By cruisepandey
      Hi, 
      I have a string like this : 
      Global $Msga = "urrent directory is /send.  (Submission of file with log number 29381077284 is confirmed)";
      I want to extract the number 29381077284  from the string. I did StringSplit to split based on "(" and then use space to reach there, But it's not a good choice. 
      Can anyone help me with regular expression to find the number from String using AutoIT. TIA
    • By nooneclose
      I want wanting to run multiple tests on my company website. Sadly the process I want to automate requires opening a File Explorer to add an attachment. Is there a way in to automate a Chrome opened File Explorer?
      (I am using webdriver to automate the other 99% of the process just fine. But when I have it click on attach file and chrome opens a file explorer I do not know how to handle it.) 
      Any help would be greatly appreciated. 
    • By cruisepandey
      Hi There ! 
      I have a script here : 
       
      ;Launch CMD
      Run("C:\Windows\System32\cmd.exe")
      sleep(2000)
      $cmdHandle = WinActivate("C:\Windows\System32\cmd.exe")
      Sleep(2000)
      ;Sending document
      ControlSend($cmdHandle, "", "", "ftp" & @CRLF)
      ControlSend($cmdHandle, "", "", "open" & @CRLF)
      Sleep(2000)
      ControlSend($cmdHandle, "", "", "first command" & @CRLF)
      Sleep(2000)
      ControlSend($cmdHandle, "", "", "second-coomand" & @CRLF)
       
      first-command and second-command I can't provide cause it's internal. I have complied this .au3 file into an exe and it does the work. But I need to invoke this with Java. Java code I have tried is : 
       
          ProcessBuilder pb = new ProcessBuilder("C:\\Users\\username\\eclipse-workspace\\Examples\\src\\com\\own\\examples\\etc.exe");
          pb.start();
          Thread.sleep(5000);
       
      Through java it just launches the cmd and nothing happens after that. Please help !!
×
×
  • Create New...