nextcloud / nextcloud/android

Uploading to a folder with unicode symbols (that use a ZWJ) creates a new folder without the ZWJ

Open
#14,672 3 comments 0 reactions 1 assignee Claimed by @alperozturk96 View on GitHub
bug hotspot: filename handling stable-3.31
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

### ⚠️ Before posting ⚠️

- [x] This is a **bug**, not a question or an enhancement.
- [x] I've [searched for similar issues](https://github.com/nextcloud/android/issues) and didn't find a duplicate.
- [x] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [x] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).

### Steps to reproduce

1. Create a folder on the server that uses a unicode symbol that uses a ZWJ (Zero Width Joiner), like "Testfolder 🏳️‍⚧️"
2. Use the Android App to upload (doesn't matter if you're using the share menu from a file or using the Nextcloud Apps upload function) to upload any file into that folder
3. The Android App will create a new folder, using the unicode symbol, but stripping the ZWJ (in my example a folder called "Testfolder 🏳️⚧️" is created)

### Expected behaviour

The Android app shouldn't create a new folder, it should use the folder I selected. This also worked before, not sure what changed in the last (or last few?) versions.

### Actual behaviour

See above.

### Android version

15

### Device brand and model

Google Pixel 6a

### Stock or custom OS?

Stock

### Nextcloud android app version

v3.31.0

### Nextcloud server version

Nextcloud Hub 9 (30.0.6)

### Using a reverse proxy?

Yes

### Android logs

-

### Server error logs

```bash
-
```

### Additional information

-

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.