Encoding bug in translation tools.

classic Classic list List threaded Threaded
2 messages Options
Cirion75 Cirion75
Reply | Threaded
Open this post in threaded view
|

Encoding bug in translation tools.

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".
Oscar Manuel Gómez Senovilla Oscar Manuel Gómez Senovilla
Reply | Threaded
Open this post in threaded view
|

Re: Encoding bug in translation tools.

Cirion75 escribió:
> 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                  |
|----------------------------------------------------------------------|

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
eGroupWare-translation mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/egroupware-translation