logo elektroda
logo elektroda
X
logo elektroda

[Solved] Visual Studio Code - no Polish characters in files with Windows-1252 encoding

rostov84 10080 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18673653
    rostov84
    Level 12  
    Until now, I used the system Notepad to write AutoHotkey scripts. Not knowing exactly why. I didn't feel like changing the default editor somehow. Today I set up VSC. What was my surprise - in VSC I have 'Auto Guess Encoding' turned on by default, because I work with files with different character encoding and I want it to be detected automatically. When I opened VSC the AHK script written in Notepad and saved with Windows-1252 encoding, I saw that the comments were missing Polish characters. Why is this happening? I also have many other files saved with this encoding and it is not profitable for me to convert everything to UTF-8.
  • ADVERTISEMENT
  • Helpful post
    #2 18673681
    JacekCz
    Level 42  
    Use some normal lightweight development editor. VSCode is terribly greasy, and maybe has "overengineering"
    Notepad +, Scite or whatever else is there.
    They have a normal human encoding setting, if you set it, it won't spell.

    with UTF-8 gently, it's a variable length standard
  • ADVERTISEMENT
  • Helpful post
    #3 18673999
    ex-or
    Level 28  
    rostov84 wrote:
    saved with Windows-1252 encoding, I saw that there are no Polish characters in the comments.

    There are no Polish characters in CP 1252. The Windziana "Polish" code page is CP 1250.
  • ADVERTISEMENT
  • #4 18674056
    rostov84
    Level 12  
    @ ex-or So why do I see Polish characters when I open these files in the Windows Notepad in which they were written? VSC states that their encoding is Windows-1252.
ADVERTISEMENT