Right to Left string Manipulation

  • Thread starter Thread starter mikomarseillais
  • Start date Start date
M

mikomarseillais

Description of the problem:

The context

I have to upload a file into sharepoint programmatically.
To do that i have to call “Add†function on the chosen folder or list and
passing as parameter the url of the file.

The problem

I have to write the url programmatically and when I mix English and Hebrew I
don’t obtain the wanted url.

Sample:

I want to add a file named “test.docx†in the location
http://myserver/mylist/myfolder/.
In my case I get the file name programmatically by looping into a folder in
my local computer.

So in my code I have to write :

string filename=myFileName( sample: “test.docxâ€)
string UrlLocation= http://myserver/mylist/תיקייהâ€;
String Url=UrlLocation+filename;
myFolder.Add(Url);

The problem is that for the Url I obtain this value :
http://myserver/mylist/ test / תיקייה.docx and not : http://myserver/mylist/
תיקייה / test.docx .
In fact the “/†character disturb the concatenation.

I have already tested : StringBuilder, Encoding, bidi32.dll without success.

Thanks for help
 
Back
Top