** Create Folder with Arabic Name using ListData.svc in SharePoint 2016. **
I am Using ListData.svc to create folder:
// my C# code
var path = pURL + sourceFolder + "/" + folderName;
var contentTypeId = "0x012000F069FA9A45983BE";
client = new HttpClient(new HttpClientHandler() { UseDefaultCredentials = true });
client.BaseAddress = new System.Uri(pURL);
client.DefaultRequestHeaders.Clear();
client.DefaultRequestHeaders.Add("Accept", "application / json; charset=utf-8");
client.DefaultRequestHeaders.Add("Slug", path + "|" + contentTypeId);
var responseCreate = client.PostAsync("_vti_bin/listdata.svc/" + sourceFolder, null).Result;
As written in the code I am using custom Content Type, sending the contentTypeId with the “Slug” header.
Everything work fine, when the folder name in English e.g.
path = http://sp2016:5841/RMSDoc/Activities/My NewFolder; // this work fine.
The issue when I am trying to create new folder with Arabic name e.g.
path = http://sp2016:5841/RMSDoc/Activities/مجلد جديد; // this not work fine.
Anyone can help!