wp-utf8-text
CommunitySafely manage UTF-8 text in WordPress plugins.
AuthorLonsdale201
Version1.0.0
Installs0
System Documentation
What problem does it solve?
WordPress plugins frequently deal with text from CSV, XML, REST, emails, prompts, and external APIs. This skill provides guidance to validate, scrub, preserve, or reject invalid UTF-8 sequences to avoid data corruption and display issues.
Core Features & Use Cases
- Validation: Use wp_is_valid_utf8() to detect invalid bytes before storage or processing.
- Scrubbing & preservation: Apply wp_scrub_utf8() to sanitize data for safe display while preserving data when necessary.
- Boundary-aware decisions: Leverage wp_check_invalid_utf8() and noncharacter checks to decide whether to reject, scrub, or preserve input across XML/JSON/feeds, logs, and API payloads.
- Example: When importing a CSV from a legacy source, ensure all text fields pass validation or are scrubbed to prevent encoding errors downstream.
Quick Start
Process an imported text payload by validating, scrubbing, or preserving UTF-8 bytes according to the boundary rules.
Dependency Matrix
Required Modules
None requiredComponents
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: wp-utf8-text Download link: https://github.com/Lonsdale201/wp-agent-skills/archive/main.zip#wp-utf8-text 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.