Rocket.Chat.ReactNative icon indicating copy to clipboard operation
Rocket.Chat.ReactNative copied to clipboard

Mobile uploads: names of files are not saved if written in non-latin alphabet (Russian, Arabic, Chinese)

Open mar-v opened this issue 6 years ago • 2 comments

  • Your Rocket.Chat app version: 4.5.2.2110 (beta)
  • Your Rocket.Chat server version: 3.1.0
  • Device (or Simulator) you're running with: HT 70

Steps to reproduce:

  1. Open the app, any room.
  2. Click on add files button, select from library, change the name to anything containing Cyrillic, Arabic or Chinese characters (probably other non-latin as well, I only tested with these three)
  3. Send the file.
  4. Check the file name in the web client. It will be either empty or containing universal characters if they were put in the initial fine name.

Filename

Screenshot 2020-03-27 at 17 03 20

Expected behaviour: the file name should be reflected correctly no matter what language it's written in.

mar-v avatar Mar 27 '20 15:03 mar-v

It works on my system. I reproduced a similar bug, though. When I send a photo with russian letters it looks okay on the mobile and web app, but when I send with arabic letters it only shows on web app, does not show on mobile.

Mobile version: 4.6.0.100 Server version: 3.1.0-develop

Case 1: Mobile arabic does not show the letters on the phone that is send from mobile 1 Web shows the arabic letters, though. 2

Case 2: Russian letters send from mobile can be seen. 4

I can also see this on web 3

ozata avatar Mar 28 '20 17:03 ozata

The bug is there for for both web as well as app client, I reproduce the bug and I tried file name in Russian, Arabic and Spanish language but after sending there was no name, except spanish.

Russian language Screenshot_20200329-130001 1 I didn't get the name in my web client, and also was not there in app client Russian

Arabic language Screenshot_20200329-125916 1 I didn't get the name in my web client, and also was not there in app client Arabic

Spanish language Screenshot_20200329-125753 1 But we are getting the output for Spanish language Spanish

shash137 avatar Mar 29 '20 07:03 shash137