Le vendredi 24 février 2006 à 11:05 +0100, Michele Petrazzo a écrit : > Joerg Budischewski wrote: > > Hi, > > > > what is your environment (which version, is it an official binary > > build or did you build on your system, do you use the system python > > or the python coming with the office)? > > Debian 3.1 with python 2.3/2.4 (both version has the same problem) > and OOo 2.0.0 it downloaded, without any modify at OOo-python internal.
This is your problem I think. The python-uno bridge from www.openoffice.org is compiled for an UCS2 python. The debian python since 2.2 are UCS4. It is why you get a problem for unicode string conversions. You have 2 solutions: 1) use the python coming with your openoffice. There is a python.sh startup script in .../openofffice.org/program/ 2) use the python-uno bridge package from debian. This bridge is compiled with the system python (python2.3 UCS4). You can easily mix the debian bridge with the dowloaded OOo. You can even use it with python2.4 without problem (python will just issue a warning because of API version mismatch). Hope it helps, > > > michele:~$ python2.3 > Python 2.3.5 (#2, May 4 2005, 08:51:39) > [GCC 3.3.5 (Debian 1:3.3.5-12)] on linux2 > > michele:~$ python2.4 > Python 2.4.2 (#2, Nov 20 2005, 17:04:48) > [GCC 4.0.3 20051111 (prerelease) (Debian 4.0.2-4)] on linux2 > > > > > > Bye, > > > > Joerg Michele Petrazzo wrote: > > Thanks, > Michele > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Pierre Martineau mail: [EMAIL PROTECTED] Bibus home: http://bibus-biblio.sourceforge.net/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
