Page 1 of 1

get folders and their children names in Arabic use php sdk not work

PostPosted:Sun Jul 26, 2015 11:08 am
by rashedmohajer
hi..
I tried to retrieve the names of folders and their children, whose names in Arabic, but appeared on this error..
(function.simplexml_load-string)
Even if you use UTF-8
I do not know if the bugs in sdkphp or not.

Re: get folders and their children names in Arabic use php sdk not work

PostPosted:Sun Jul 26, 2015 3:48 pm
by jllort
I would like to reproduce the problem, we need two things:
1- sample code you're using
2- export some arabic folder and subfolder ( administration -> export ) and with it will be able to re-create your scenario in one of our developement environement.

Upload here a a zip file

Re: get folders and their children names in Arabic use php sdk not work

PostPosted:Mon Jul 27, 2015 3:06 pm
by rashedmohajer
hello
here is my sample code in zip file /test/getfolderin arabic.php ...
I don't understand how to export arabic file can you give steps ?

Re: get folders and their children names in Arabic use php sdk not work

PostPosted:Sat Aug 01, 2015 8:32 am
by rashedmohajer
:cry: :cry: :cry: :cry: :cry: :cry:

Re: get folders and their children names in Arabic use php sdk not work

PostPosted:Sun Aug 02, 2015 8:41 am
by jllort
A colleague is still looking for it, when will be tested we'll provide you our feedback, do not worry.

Re: get folders and their children names in Arabic use php sdk not work

PostPosted:Thu Aug 27, 2015 11:32 am
by sochoa
Hello,

This one solves the problem you have with the special characters that you use. See attached archive.

Regards.

Re: get folders and their children names in Arabic use php sdk not work

PostPosted:Wed Oct 07, 2015 2:51 pm
by rashedmohajer
hi,
After trying all the examples I found two problems
First,
I can not search in my special characters( Arabic name in all tests work well but not in TestSearch.php)
Second,
This attachment file operates with Professional only and is not With the community
I hope that I find the version work with community

Here my sample code
Code: Select all
//find
$queryParams = new QueryParams();
$queryParams->setDomain(QueryParams::DOCUMENT + QueryParams::FOLDER);
//$queryParams->setName('test');
//$queryParams->setFolder("/okm:root");
$queryParams->setFolderRecursive(true);

$properties = array();
$properties[self::PROPERTY_TECHNOLOGY_LANGUAGE] = 'راشد';
$queryParams->setProperties($properties);

$keywords = array();
$keywords[] = 'x';
//$queryParams->setKeywords($keywords);

$queryResults = $this->ws->find($queryParams);
foreach ($queryResults as $queryResult) {
    $this->printQueryResult($queryResult, 'find');
}

Re: get folders and their children names in Arabic use php sdk not work

PostPosted:Thu Oct 08, 2015 3:18 pm
by jllort
Actually we're nearly to close new version of sdk for php professional, when will be yet released we will go for community version. I think will be needed 2 weeks more or less.

Re: get folders and their children names in Arabic use php sdk not work

PostPosted:Thu Oct 08, 2015 5:21 pm
by rashedmohajer
is ther any possibility to solve my problem before the 15 of this month, I want discuss my graduation project at this date , and it may not passed because of this problem

Re: get folders and their children names in Arabic use php sdk not work

PostPosted:Sat Oct 10, 2015 4:06 pm
by jllort
At the present the only workaround we can offer to you is use older SOAP API for it, http://wiki.openkm.com/index.php/PHP_cl ... OpenKM_6.2 try with this sample http://wiki.openkm.com/index.php/PHP_cl ... lex_search

We've still not closed the new version of sdk php professional and until be finished we will not start working again with community one, apologies for it. If you need some official paper from our side to your graduation project, there's no problem, we can explain it's not your fault and we're still not solved it with official OpenKM community sdk for php.

Re: get folders and their children names in Arabic use php sdk not work

PostPosted:Sat Oct 10, 2015 5:55 pm
by rashedmohajer
Dear Mr.
This certainly gives me great pleasure to explain my position, and if Iam first Arabic user use openkm sdkphp Mention in official paper it help more
to explained that these problems are not a technical problems but its arabic language problems

Re: get folders and their children names in Arabic use php sdk not work

PostPosted:Sun Oct 11, 2015 6:39 pm
by jllort
You're not the first arabic user sure and some of our customer are using api ( we have 3 sdk, .net , java and php ). The most stable is SDK for Java and later goes .net and at the end php. If you were a customer it will be yet solved, but is not the case, unfortunatelly we have a roadmap and our first priority are our customers, otherwise this company will not exists ( hope you could understand this point ). Bugs reported by community users goes in other speed. Anyway community users have the advantage of getting source code ( sdk for php and openkm source code ) and sometimes themself provide to us patches to resolve bugs.

You should debug from OpenKM side and check if parameters arrives there correctly or not ( I suppose you have configured the OpenKM portable dev environment https://sourceforge.net/projects/openkmportabledev/ ). The involved class is SearchService.java