LinuxCommandLibrary

msgconv

converts PO files between character encodings

TLDR

Convert PO file encoding

$ msgconv -t [UTF-8] [input.po] -o [output.po]
copy
Convert to specific encoding
$ msgconv --to-code=[ISO-8859-1] [file.po]
copy
Convert and output to stdout
$ msgconv -t [UTF-8] [input.po]
copy
Force conversion
$ msgconv --force [input.po] -o [output.po]
copy

SYNOPSIS

msgconv [options] [inputfile]

DESCRIPTION

msgconv converts PO files between character encodings. It's part of GNU gettext.
The tool handles translation file encoding. Preserves message structure during conversion.

PARAMETERS

INPUTFILE

PO file to convert.
-t ENCODING
Target encoding.
--to-code ENCODING
Target character encoding.
-o FILE
Output file.
--force
Force conversion.
--help
Display help information.

CAVEATS

Part of gettext-tools. May lose data in incompatible conversions. UTF-8 recommended.

HISTORY

msgconv is part of GNU gettext, providing internationalization tools since 1995.

SEE ALSO

msgen(1), msgfmt(1), msgmerge(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community