Navigation
POST text

utf8_normalize

1 credit

Normalize unicode text to a standard form and optionally strip diacritical marks (accents).

Endpoint

POST /api/v1/tools/text/utf8_normalize

Body Parameters

form string optional default: "NFC"
Options: NFC NFD NFKC NFKD
text string required
strip_accents boolean optional default: false

Example

input Request
{
    "form": "NFC",
    "text": "caf\u00e9"
}
output Response
"caf\u00e9"

Response Format

HTTP/1.1 200 OK SUCCESS
{
  "success": true,
  "data": "caf\u00e9",
  "meta": {
    "tool": "utf8_normalize",
    "credits_consumed": 1
  }
}
HTTP/1.1 422 Unprocessable Entity ERROR
{
  "success": false,
  "data": null,
  "error": {
    "code": "validation_error",
    "message": "The given data was invalid."
  }
}

Sign in to try this tool directly from the docs.

Code Examples
Request Example
lightbulb Developer Tip

Credits are deducted before execution. If the upstream tool fails, credits are automatically refunded to your account.