---
name: "poreencode"
section: "1"
platform: "linux"
package: "translate-toolkit"
version: "3.15.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/poreencode"
---

# poreencode(1)

Re-encode all files of a PO directory to the specified encoding.

## NAME

poreencode - Re-encode all files of a PO directory to the specified encoding.

## SYNOPSIS

**poreencode** *encoding* *PO-directory*

Where *encoding* is the encoding you would like to convert to eg. UTF-8, and *PO-directory* is a directory of existing PO files.

## DESCRIPTION

Takes a directory of existing PO files and converts them to a given encoding.

## OPERATION

**poreencode** makes use of the Gettext tool [**msgconv**(1)](/msgconv/1.md) to perform its task. It traverses the PO directory and finds all PO file. It uses [**msgconv**(1)](/msgconv/1.md) to convert the PO file from its existing encoding to the new encoding.

## BUGS

Like most Gettext tools they do a little bit more than documented, [**msgconv**(1)](/msgconv/1.md) will decide which strings are in fact fuzzy and delete fuzzy marking - not a lot but you do need to diff (this probably related to #, fuzzy entries that are not placed in the place Gettext expects them).
