cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with POI on Linux

orybak
Champ in-the-making
Champ in-the-making
Hello, everyone!
I have encountered such a problem with metadata extraction: poi library extracts metadata from office files as unreadable symbols.

In some files I have metadata written in English. It is extracted correctly. However, when metadata (for example document title or description) is written in Russian, Alfresco fails to extract it correctly.

Firstly, I had such a problem both on Windows (I am using win 200 server) and on Linux. I managed to cope with this problem on Windows by setting the  system locale to Russian. Both English and Russian metadata were extracted correctly.  Then I set the locale on Linux (/etc/sysconfig/i18n) to "ru_RU.UTF-8". However the problem remains - metadata is not exctracted correctly  Smiley Sad

I would be grateful if you could help me to solve this problem.
Thanks in advance.
2 REPLIES 2

orybak
Champ in-the-making
Champ in-the-making
OS: Windows 2000 Server (English)
Installed Locales: English (US), Russian.

Found some interesting effects:
1) If the default locale in Russian then metadata is extracted successfully from ms office documents BUT  :!:  CIFS does not allow to enter any folder with cyrillic characters in it.
2) When the default locale is English(US) CIFS is working, BUT  :!: metadata is not extracted correctly

Did enyone observe such effects? Could anyone propose some solution/workaround for this?

Thanks in advance.

orybak
Champ in-the-making
Champ in-the-making
I have found a solution to this problem. Both POI and CIFS are working correctly when we explicitly defined application language and file encoding. So all we need is to add the following parameters to java executable:

-Duser.language=ru -Duser.country=RU -Duser.region=RU -Duser.variant=RU -Dfile.encoding=CP1251‍

After it is done, metadata is extracted successfully from office documents and CIFS is working correctly with folders containing cyrillic characters
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.