|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIG. - Google AI > 7. Helpers > AIG.FixUmlaut |
MiniRobotLanguage (MRL)
AIG.FixUmlaut
Fix common UTF-8 encoding issues in text variables.
Intention
To repair text that displays "Mojibake" characters (e.g., "ä" instead of "�") caused by incorrect interpretation of UTF-8 data as ANSI/Latin-1.
What is the FixUmlaut Command?
This utility command scans a variable for specific byte sequences representing UTF-8 German umlauts and common Emojis, replacing them with their correct single-byte or readable equivalents in the current system codepage.
Why Do You Need It?
�The Gemini API returns strict UTF-8 JSON.
�Sometimes, when extracting text to the clipboard or saving to legacy text files, the decoding process might leave artifacts.
�This command provides a "last resort" cleanup for German text.
Example Usage
AIG.Ask|Summarize this German article...|$$Result
// If $$Result looks like "Dies ist ein schöner Tag"
AIG.FixUmlaut|$$Result
// $$Result is now "Dies ist ein sch�ner Tag"
DBP. $$Result
Syntax
AIG.FixUmlaut|P1
AIG.fiu|P1
Parameter Explanation
P1 - The variable containing the text to be fixed. The variable is updated in-place.
See also: