SoftInstigate / restheart

Rapid API Development with MongoDB
https://restheart.org
GNU Affero General Public License v3.0
807 stars 171 forks source link

Arabic characters not working well with V4 #370

Closed shireefadel closed 4 years ago

shireefadel commented 4 years ago

I have some names written in Arabic, it was working good in version 3 but now it's returning as gibberish instead

Expected Behavior

Arabic characters to be displayed correctly

Current Behavior

Gibberish characters returned. "�������� ��������������"

Environment

RH 4 installed on ubuntu 16 server with mongo db 4, the front-end is angular

gibbresh arabic 2 gibbresh arabic 1
ujibang commented 4 years ago

Add the option file.encoding=UTF-8 to the java command that starts RESTHeart as follows:

$ java -Dfile.encoding=UTF-8 -jar restheart-platform-core.jar etc/restheart-platform-core.yml -e etc/default.properties

let us know if this fixes your issue

shireefadel commented 4 years ago

Yes -Dfile.encoding=UTF-8 did solve the problem, thanks