Discussion:
[eGroupWare-translation] Encoding bug in translation tools.
Cirion75
2009-09-19 06:19:33 UTC
Permalink
I have been translating and retranslating over and over again almost a week
now.

Finally I have found out what happens...

Sometimes the translation tools somehow switches from UTF-8 to ISO-8859 and
crashes with a error message when trying to save or update the database. If
I save the file too, it is saved with ISO-8859 ecoding.

If I manually convert the file from ISO-8859 to UTF-8 I can save the
translation and load it up in translation tools, saving & updating the
database then usually works.

If I do not convert it, the next time I load the same file and press save,
all special characters are lost, and translations fail every time I try to
enter a special character. I can still save the file, but now it has no
special chars from the previous translation and new special chars have
strange chars instead. I have to manually convert the file to UTF-8 and
retranslate the whole file (adding all the special characters) to get
translation of special characters to work again.

This is the error message:
Database error

Invalid SQL: INSERT INTO egw_lang (message_id,app_name,lang,content) VALUES
('%1 contact(s) %2, %3 failed because of insufficent rights
!!!','addressbook','no','%1 kontakt(er) %2, %3 feilet pᅵ grunn av manglende
rettigheter !!!'):
ERROR: invalid byte sequence for encoding "UTF8": 0xe52067
HINT: This error can also happen if the byte sequence does not match the
encoding expected by the server, which is controlled by "client_encoding".
--
View this message in context: http://www.nabble.com/Encoding-bug-in-translation-tools.-tp25518971s3741p25518971.html
Sent from the eGroupWare-translation mailing list archive at Nabble.com.
Oscar Manuel Gómez Senovilla
2009-10-18 20:10:01 UTC
Permalink
Post by Cirion75
I have been translating and retranslating over and over again almost a
week now. Finally I have found out what happens... Sometimes the
translation tools somehow switches from UTF-8 to ISO-8859 and crashes
with a error message when trying to save or update the database. If I
Hi.

Sorry to reply so late (maybe better late than never).

I need two extra data:
1) What is your egw version?
2) What is the value of the "charset" phrase in phpgwapi? I guess you're
translating norwegian, so, if you didn't change the phrase, it should be
"utf-8". If you changed it, please revert the change.


Regards.
--
|----------------------------------------------------------------------|
| http://counter.li.org info: Linux user: 92390 - Linux machine: 39301 |
| Oscar Manuel Gómez Senovilla - omgsATescomposlinux.org |
| GPG Key at http://keyserver.pgp.com |
|----------------------------------------------------------------------|
Loading...