Open a terminal window (if necessary).
As superuser create a temporary directory.
# mkdir /export/am_mo_gen
Change to the created directory.
# cd /export/am_mo_gen
Create an example.po file.
Open the empty example.po file in a text editor.
Add the following content to the file:
domain "example"
msgid "This is an example how to generate a Machine Object file in UTF-8 encoding"
msgstr "Cet example démontre comment générer un fichier Machine Object encodé avec UTF-8"
Add the charset specification to the bottom of the file, as follows:
“Content-Type: text/plain; charset=UTF-8\n”
Save the changes.