Error Message : Invalid byte 2 of 2-byte UTF-8 sequence

⚠️ Error Message

    Invalid byte 2 of 2-byte UTF-8 sequence
          

📌 Causes

This error occurs because:

➡️ Workflow files (*.csd) do not use UTF-8 encoding

HGrid247 can only read files with UTF-8 encoding , so if the file: ➡️ Then this error will appear when compiling or loading the workflow

🧠 Simple Explanation



UTF-8 is the encoding standard for reading text.

If the file is created/edited with another encoding:
➡️ The bytes read become “invalid”

That's why the error appears:
    Invalid byte ...

🎯 Solution

🔧 Method 1: Using Notepad++ (Recommended)

Steps:
  1. Open the file .csd in Notepad++
  2. Click the menu:
        Encoding
        
  3. Choose:
        Convert to UTF-8
        
  4. Save file (Ctrl + S)

🔧 Method 2: Using Another Editor

If using another editor:
Make sure when saving:
    Encoding = UTF-8

⚠️ Things That Happen Often