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

Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
rashedmohajer
Junior Boarder
Junior Boarder
Posts: 22
Joined: Sat Jul 25, 2015 8:03 am
Location: sudan

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

Post by rashedmohajer » Sun Jul 26, 2015 11:08 am

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.

jllort
Moderator
Moderator
Posts: 9374
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

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

Post by jllort » Sun Jul 26, 2015 3:48 pm

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

rashedmohajer
Junior Boarder
Junior Boarder
Posts: 22
Joined: Sat Jul 25, 2015 8:03 am
Location: sudan

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

Post by rashedmohajer » Mon Jul 27, 2015 3:06 pm

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 ?
Attachments
sdk4php.rar
(106.46 KiB) Downloaded 51 times

rashedmohajer
Junior Boarder
Junior Boarder
Posts: 22
Joined: Sat Jul 25, 2015 8:03 am
Location: sudan

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

Post by rashedmohajer » Sat Aug 01, 2015 8:32 am

:cry: :cry: :cry: :cry: :cry: :cry:

jllort
Moderator
Moderator
Posts: 9374
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

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

Post by jllort » Sun Aug 02, 2015 8:41 am

A colleague is still looking for it, when will be tested we'll provide you our feedback, do not worry.

sochoa
Junior Boarder
Junior Boarder
Posts: 29
Joined: Thu May 02, 2013 3:26 am

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

Post by sochoa » Thu Aug 27, 2015 11:32 am

Hello,

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

Regards.
Attachments
sdk4php-2.0.5.zip
(170.6 KiB) Downloaded 53 times

rashedmohajer
Junior Boarder
Junior Boarder
Posts: 22
Joined: Sat Jul 25, 2015 8:03 am
Location: sudan

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

Post by rashedmohajer » Wed Oct 07, 2015 2:51 pm

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');
}

jllort
Moderator
Moderator
Posts: 9374
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

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

Post by jllort » Thu Oct 08, 2015 3:18 pm

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.

rashedmohajer
Junior Boarder
Junior Boarder
Posts: 22
Joined: Sat Jul 25, 2015 8:03 am
Location: sudan

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

Post by rashedmohajer » Thu Oct 08, 2015 5:21 pm

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

jllort
Moderator
Moderator
Posts: 9374
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

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

Post by jllort » Sat Oct 10, 2015 4:06 pm

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.

rashedmohajer
Junior Boarder
Junior Boarder
Posts: 22
Joined: Sat Jul 25, 2015 8:03 am
Location: sudan

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

Post by rashedmohajer » Sat Oct 10, 2015 5:55 pm

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

jllort
Moderator
Moderator
Posts: 9374
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

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

Post by jllort » Sun Oct 11, 2015 6:39 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest