bumptech / bumptech/glide

GIF not loaded when the file path includes Korean name

Open
#3,675 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

**Glide Version**: 4.9.0

**Integration libraries**: Many. But it have no relation with this issue.

**Device/Android Version**: Galaxy S10 / Android 9.0 (SDK 28)

**Issue details / Repro steps / Use case background**:
I'm making chat app that can send the GIF file. I used some GIF files downloaded from website to test for sending image file ordinarily and I found the problem that the picture file named Korean(다운로드.gif) is not played well. It looks like bitmap because it show the first frame only. I did also test English(download.gif), Japanese(ダウンロード.gif) and Chinese(下载.gif) name and it worked well. In addition, I set the option "asGif" when load picture into ImageView and it worked well.

**Not work:**
```java
Glide.with(context).load(imageFile).into(img_preview);
```
**Work:**
```java
if (ext.equals("gif"))
Glide.with(context).asGif().load(imageFile).into(img_preview);
else
Glide.with(context).load(imageFile).into(img_preview);
```

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.