Author Topic: extension asm couldn't be read by notepad  (Read 320 times)

TouEnMasm

  • Member
  • *****
  • Posts: 1334
    • EditMasm
extension asm couldn't be read by notepad
« on: July 14, 2020, 04:52:26 PM »
Hello,
I had a fast look on your IDE and had a bad surprise.
The asm (text files) are changed so the notepad couldn't read them.
There is big space between each letters.
I have try to delet,in the registry,the association between .asm and easy code but your install tool don't want to do it.
It's not a little problem,other controls who read text,are also on the trouble and lost of code is possible.
Fa is a musical note to play with CL

rsala

  • Moderator
  • Member
  • *****
  • Posts: 318
    • Easy Code
Re: extension asm couldn't be read by notepad
« Reply #1 on: July 14, 2020, 07:36:04 PM »
Hello,

All files written in the Easy Code editor are saved in Unicode text (16 bits per char) so that you can write comments in all languages (it is explained in the help file). When compiling the .asm files are converted to ANSI or UTF-8, dependig on the configuration for each assembler. The deafult mode is ANSI, but you can choose any other mode if the assembler supports it.

So you should not have any problem with a Unicode editor (i.e Windows Notepad).
EC coder

jj2007

  • Member
  • *****
  • Posts: 10539
  • Assembler is fun ;-)
    • MasmBasic
Re: extension asm couldn't be read by notepad
« Reply #2 on: July 14, 2020, 11:45:39 PM »
The asm (text files) are changed so the notepad couldn't read them.
There is big space between each letters.

That is usually a sign that you got Unicode (UTF-16) text opened in an editor that doesn't know what UTF-16 is. However, my Win7-64 version of Notepad has no problem with UTF-16, with or without the BOM (FF FE).

rsala

  • Moderator
  • Member
  • *****
  • Posts: 318
    • Easy Code
Re: extension asm couldn't be read by notepad
« Reply #3 on: July 14, 2020, 11:58:29 PM »
jj2007,

Thanks for your answer!
EC coder

TouEnMasm

  • Member
  • *****
  • Posts: 1334
    • EditMasm
Re: extension asm couldn't be read by notepad
« Reply #4 on: July 15, 2020, 02:49:20 AM »

Happy to know that it isn't a problem for you.You know it.There is only windows 10 who have problem with that.
I have just passed a certain time rewriting text in a richedit who have been also disturbed as the notepad.

Fa is a musical note to play with CL

rsala

  • Moderator
  • Member
  • *****
  • Posts: 318
    • Easy Code
Re: extension asm couldn't be read by notepad
« Reply #5 on: July 15, 2020, 06:32:14 AM »
Notepad works perfectly well in my Windows 10 Pro 64-bit.
EC coder