utf8-to-cp1252-conversion
OfficialConvert UTF-8 Protheus sources safely to CP1252
Authortotvs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill prevents Protheus compilation failures and character corruption by converting AdvPL/TLPP source files from UTF-8 into Windows-1252 (CP1252), which the Protheus compiler requires.
Core Features & Use Cases
- In-place UTF-8 BOM-aware conversion: Converts files while stripping UTF-8 BOM when present and preserving the original filename and extension.
- Deterministic script-based workflow: Uses the provided Bash or Windows batch scripts instead of ad-hoc manual conversions that can corrupt files.
- Prevention of invalid artifacts: Enforces rules such as no
.cp1252extension files, no backups/duplicates, no renames, and post-conversion verification guidance. - Batch and recursive processing: Converts multiple
.prw/.prg/.tlpp/.prx/.ch/.thfiles and supports recursive directory scans. - Typical use case: After an AI code-generation or migration skill produces new Protheus sources in UTF-8, run this skill to make them compile-ready in CP1252.
Quick Start
Ask the agent to convert your generated Protheus sources to CP1252 by running the provided script on the files you want compiled.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: utf8-to-cp1252-conversion Download link: https://github.com/totvs/engpro-advpl-tlpp-skills/archive/main.zip#utf8-to-cp1252-conversion Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.