msgmerge: invalid multibyte sequence
Jump to:
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
See full solution in linked gettext page.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.