TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Return text encoded in a non-UTF-8 charset

GEThttps://api.testingapis.com/api/formats/charset/{name}Sign in to see this endpoint's URL

Parameters 1

NameTypeDescription
namerequiredpath · stringlatin1 (alias iso-8859-1) returns ISO-8859-1 plain text; utf16 (alias utf-16) returns UTF-16LE JSON with a BOM. Case-insensitive.

Responses

200
Success.
404
Unknown charset.

Example

Request
curl -X GET "https://api.testingapis.com/api/formats/charset/latin1" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
Content-Type: text/plain; charset=iso-8859-1

Café déjà vu - naïve façade, Straße, Ærø, ¡Hola!

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.