thybag / PHP-SharePoint-Lists-API

A simple PHP API to make working with SharePoint lists easy.
MIT License
184 stars 95 forks source link

Encoding/language support #115

Closed gureen-ryuu closed 7 years ago

gureen-ryuu commented 7 years ago

When writing data in non-english letters, the resulting info will be saved as ?. For example "القلم" will be written as "?????" in the list.

gureen-ryuu commented 7 years ago

Changing $headers[] from $headers[] = "Content-Type: text/xml; to become as follows : $headers[] = "Content-Type: text/xml; charset=utf-8"; in SharePointOnlineAuth.php solves the issue.

thybag commented 7 years ago

Thanks for figuring out a fix :+1: Will hopefully find some time to pull it in centrally soon.