msgmerge: invalid multibyte sequence

Project:Programming
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Related pages:#375: gettext
Description

msgmerge --update translations/tw/overshoot_smoking.po   translations/overshoot_smoking.pot
translations/tw/overshoot_smoking.po:3: invalid multibyte sequence
translations/tw/overshoot_smoking.po:3: invalid multibyte sequence
translations/tw/overshoot_smoking.po:3: invalid multibyte sequence
translations/tw/overshoot_smoking.po:3: invalid multibyte sequence
translations/tw/overshoot_smoking.po:3: invalid multibyte sequence
translations/tw/overshoot_smoking.po:3: invalid multibyte sequence
translations/tw/overshoot_smoking.po:3: invalid multibyte sequence
translations/tw/overshoot_smoking.po:3: invalid multibyte sequence

The line in question contained the Chinese translation of the string.
Running the command above had for effect to delete the Chinese string from the .po file. It was replaced by an empty string.

Comments

#1

http://www.gnu.org/software/gettext/manual/html_node/Header-Entry.html#H...

Add
"Content-Type: text/plain; charset=UTF-8\n"
at the bottom of the .po file.

#2

Status:active» fixed

See full solution in linked gettext page.

#3

Status:fixed» closed
Related pages:-375: gettext

Automatically closed -- issue fixed for 2 weeks with no activity.