---
title: "Convert Tamil text"
method: POST
path: "/v1/tamil-font/convert"
tags: ["Tamil legacy encodings"]
---

# Convert Tamil text

`POST /v1/tamil-font/convert`

## Request

- Base URL: `https://api.dharun.dev`
- URL: `https://api.dharun.dev/v1/tamil-font/convert`
- Auth: none declared

Give the text as it looks without its font (the Windows-1252 characters), or POST the raw bytes as application/octet-stream. Converting to an 8-bit encoding answers with the same kind of text, and with the bytes in base64. Bytes the encoding does not assign are counted in undefined; characters it has no code for are listed in unmapped.

## Query parameters

- `from` 'unicode' | 'tscii'
- `to` 'unicode' | 'tscii'

## Request body

- object
  - `from` 'unicode' | 'tscii': What the text is in.
  - `text` string, required: The text, or with Content-Type application/octet-stream the raw bytes.
  - `to` 'unicode' | 'tscii': What to convert to. Default unicode; one of from and to must be unicode.

## Response `200`

Success

- Envelope
  - `data` unknown, required
  - `meta` object, required
    - `limit` integer
    - `note` string
    - `offset` integer
    - `source` object: Where the data came from and the credit its licence asks for.
      - `attribution` string
      - `licence` string
      - `name` string
      - `retrieved` string
      - `url` string
      - `version` string
    - `total` integer

## Other responses

- `400`: Error
- `404`: Error
- `429`: Error

---

[API](https://skmtc.dev/dharun/apis/india-api-free-open-source-apis-for-indian-data.md) · [All operations](https://skmtc.dev/dharun/apis/india-api-free-open-source-apis-for-indian-data/llms.txt) · [OpenAPI document](https://skmtc.dev/dharun/apis/india-api-free-open-source-apis-for-indian-data/revisions/ecd8b0ec7863?raw)
