This skill provides specialized guidance for handling the complex encoding requirements of TOTVS Protheus projects, where legacy cp1252 (.prw/.prx) and modern UTF-8 (.tlpp) files frequently coexist. It prevents common 'mojibake' errors and file corruption during AI-assisted editing by enforcing a 'preserve-by-default' policy and providing safe workflows for reading and writing accented characters. By utilizing the plugadvpl CLI, it ensures that Claude correctly interprets legacy codebases without breaking the AppServer compiler or runtime string handling.
主要功能
01Standardized workflows for staging and committing encoding-safe changes
02Troubleshooting for AppServer console logs and REST/JSON data integration
03Automated encoding detection for .prw, .prx, and .tlpp files
0413 GitHub stars
05Guidance on ADVPL runtime conversion functions (EncodeUTF8/DecodeUTF8)
06Prevention of character corruption (mojibake) during AI Edit/Write operations
使用场景
01Safe AI refactoring of large .prw files containing Portuguese characters
02Implementing REST services that require UTF-8 to cp1252 data conversion
03Fixing 'broken accents' or special characters in legacy Protheus source code