utf8-to-cp1252-conversion

utf8-to-cp1252-conversion is a skill for Claude Code, Codex from totvs/engpro-advpl-tlpp-skills. It costs 129 tokens per session (2,722 once invoked), scanned A, original, MIT.

A procedure for converting AdvPL and TLPP source files from UTF-8, a common text encoding, to Windows-1252, the encoding required by the Protheus compiler.

In plain words
What is it for?
Use it after generating or editing Protheus files such as .tlpp, .prw, .prg, .prx, .ch, or .th, then check that the conversion succeeded.
Why use it?
It prevents compilation failures caused by source files being saved in an unsupported encoding and keeps the original filename unchanged.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it after generating or editing Protheus files such as .tlpp, .prw, .prg, .prx, .ch, or .th, then check that the conversion succeeded.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/totvs/engpro-advpl-tlpp-skills/utf8-to-cp1252-conversion
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add totvs/engpro-advpl-tlpp-skills --skill utf8-to-cp1252-conversion
Clone the repo
git clone --depth 1 https://github.com/totvs/engpro-advpl-tlpp-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for utf8-to-cp1252-conversion

README.md
[![agentmods](https://agentmods.dev/badge/skills/totvs/engpro-advpl-tlpp-skills/utf8-to-cp1252-conversion/github.svg)](https://agentmods.dev/skills/totvs/engpro-advpl-tlpp-skills/utf8-to-cp1252-conversion)
Your own site
<a href="https://agentmods.dev/skills/totvs/engpro-advpl-tlpp-skills/utf8-to-cp1252-conversion"><img src="https://agentmods.dev/badge/skills/totvs/engpro-advpl-tlpp-skills/utf8-to-cp1252-conversion/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for utf8-to-cp1252-conversion

Your own site · 80×15
<a href="https://agentmods.dev/skills/totvs/engpro-advpl-tlpp-skills/utf8-to-cp1252-conversion"><img src="https://agentmods.dev/badge/skills/totvs/engpro-advpl-tlpp-skills/utf8-to-cp1252-conversion.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 129 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,722 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00129 $0.02722
Opus 5 $0.00064 $0.01361
Sonnet 5 $0.00026 $0.00544
Haiku 4.5 $0.00013 $0.00272

Measured 12d ago against content hash f98989f91686, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

utf8-to-cp1252-conversion scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/convert-encoding.bat, scripts/convert-encoding.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/advpl-tlpp/utf8-to-cp1252-conversion/SKILL.md · 257 lines

How it starts

The opening of the file, as written. The whole thing — 257 lines — stays where its author put it; the contents beside it link to each section on GitHub.

UTF-8 to CP1252 Encoding Conversion

CRITICAL — Agent Execution Rules

These rules are MANDATORY. Any violation causes compilation failures and file corruption.

  1. ALWAYS use the provided scripts — NEVER attempt manual encoding conversion (e.g., Python, Node.js, or copying content to a new file).
  2. Conversion is IN-PLACE — The script replaces the original file. The filename and extension do NOT change. A .tlpp file stays .tlpp, a .prw stays .prw.
  3. NEVER create files with .cp1252 extension — There is no such convention. Files keep their original extension (.prw, .prg, .tlpp, .prx, .ch, .th).
  4. NEVER create backup copies or duplicate files — No .bak, .orig, .utf8, .old, or any other copy. Only the converted file must exist.
  5. NEVER rename files during conversion — The filename must remain exactly the same before and after conversion.
  6. VERIFY after conversion — Run file --mime-encoding <file> (Linux/macOS) to confirm the result is iso-8859-1 or unknown-8bit, NOT utf-8.
  7. ONE final state — After this skill runs, only the original file (now CP1252-encoded) must exist. Zero temporary files, zero copies, zero artifacts.

Overview

Convert AdvPL and TLPP source files from UTF-8 encoding to Windows-1252 (CP1252). The Protheus compiler (AdvPL, AdvPL ASP, 4GL, and 4GLP) only supports files encoded in CP1252 (Windows code page 1252). AI agents and modern editors create files in UTF-8 by default, which causes compilation errors and corrupted characters (mojibake) when compiled by TDS/AppServer.

This skill provides two native scripts (zero external dependencies) that safely convert file encoding with BOM detection and batch processing support:

  • Bash + iconv → Linux and macOS (both pre-installed)
  • PowerShell + .NET Encoding → Windows (both pre-installed)

Source: TDN Documentation — "Os compiladores Protheus (AdvPL, AdvPL Asp, 4GL e 4GLP) suportam apenas os arquivos com código de página CP1252." (Informações sobre a gravação de arquivos-fontes)

Read the full file on GitHub · 257 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 257 lines · 129 tokens per session scan A f98989f91686

Subscribe to this mod's changes

utf8-to-cp1252-conversion is a skill published in the GitHub repository totvs/engpro-advpl-tlpp-skills (131 stars, last pushed 28d ago), licensed MIT. It adds 129 tokens to every session and 2,722 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

chinese-documentation

A Chinese technical-documentation style guide covering spacing, punctuation, numbers, terminology, and links when Chinese and English appear together.

jnMetaCode/superpowers-zh · 62 tokens

azure-ai-translation-text-py

Azure AI Text Translation SDK for real-time text translation, transliteration, language detection, and dictionary lookup. Use for translating text content in applications. Triggers: "text translation", "translator", "translate text", "transliterate", "TextTranslationClient".

microsoft/skills · 60 tokens

harden

Improve interface resilience through better error handling, i18n support, text overflow handling, and edge case management. Makes interfaces robust and production-ready. Use when the user asks to harden, make production-ready, handle edge cases, add error states, or fix overflow and i18n issues.

fengshao1227/ccg-workflow · 62 tokens

seedance-vocab-ja

This skill should be used when the user asks for Japanese Seedance 2.0 prompt wording, Japanese cinematic vocabulary, or translation of camera, lighting, action, VFX, audio, and production terms into Japanese.

Emily2040/seedance-2.0 · 50 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

i18n-helper

A helper for adding internationalization, which lets software show different languages and regional text. It finds user-visible text written directly in code and moves it into language files.

laolaoshiren/claude-code-skills-zh · 33 tokens