Crazy characters in code after import from another document (Word or eq.)

More
10 Mar 2026 12:11 #344087 by Badger1875
Hi folks,

did this appear  to anyone of you in former times?

I'm  fairly new to CNC and brandnew to LinuxCNC (MiniMill 2.9) and I needed a 'warmup_routine' for my machine, so I used the help of AI and generated a file to my purpose.
I imported the code to my Windows editor and saved the file as <name>.ngc.
I wrote shorter files on my own in g-code in advance, saved them, transfered them to the machine and opened them: they worked from the first second.

As I tried to open the g-code with the AI generated parts, I recieved absolute trashed characters in the code, the complete code was unreadable!

When I opened this file with the 'gedit' from Linux, everything looked fine...

Anyone of has some ideas, tipps or solutions?

Greetz

Freddie
 
Attachments:

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
10 Mar 2026 14:50 #344090 by tommylight
Do not use windows editors or office suits for editing machine files.
Use simple text editors such as notepad on windows or mousepad, gedit, nano, geany, etc on Linux.

Please Log in or Create an account to join the conversation.

More
10 Mar 2026 22:16 - 10 Mar 2026 22:17 #344113 by Badger1875
Hi,
I tried Editor, Notepad++ and eq. all the same result!

Still trying to figure out what the problem is...

If I open the file with gedit from Linux, everything looks fine, but as soonas I change to LinuxCNC I have the same crap...

Freddie
Last edit: 10 Mar 2026 22:17 by Badger1875.

Please Log in or Create an account to join the conversation.

Time to create page: 0.092 seconds
Powered by Kunena Forum