advpl-encoding

Community

Fix mojibake by preserving Protheus encodings.

AuthorJoniPraia
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents broken characters (mojibake like ç / ã) when Claude reads or edits ADVPL/TLPP source files that use mixed encodings across .prw/.prx (cp1252) and .tlpp (utf-8).

Core Features & Use Cases

  • Encoding detection & preservation: keeps the detected encoding per source instead of forcing a global normalization that can corrupt files.
  • Safe edit workflow for .prw/.prx: directs a stage/commit conversion flow to avoid re-writing cp1252 files as UTF-8 with replacement characters.
  • Runtime conversion guidance: specifies when to use ADVPL conversion functions (EncodeUTF8/DecodeUTF8/STRICONV) for REST/JSON and other cross-codepage boundaries.
  • Use Case: You ingest a legacy Protheus project where some .prw files show garbled accents in Read output; you want Claude to make correct edits without corrupting existing accents or causing AppServer UnicodeEncodeError.

Quick Start

Tell the AI: “Check encoding for the file FOO.prw in my plugadvpl index, then give me the correct stage/commit edit workflow to avoid corrupting existing accents.”

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: advpl-encoding
Download link: https://github.com/JoniPraia/plugadvpl/archive/main.zip#advpl-encoding

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.