# Safari 中附件的变音符号处理不正确

**URL:** https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585
**Category:** Support
**Created:** [2018年一月21日 13:43 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585 "2018-01-21T13:43:25Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [2018年一月21日 13:43 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/1 "2018-01-21T13:43:25Z")

</div>

Hi friends,  
I’ve trouble with some of my Downloads. Those ones with umlauts (ä,ö,ü) in their file name don’t get started with downloading by a simple click. Only via context menu. My Browser: Safari @ macOS High Sierra.

After the (force?) download is finished, the file name is corrupted. For example:

```
Right: Lösung.pdf
Wrong: LÃ¶sung.pdf

```

[Lösung (test).pdf](https://global.discourse-cdn.com/meta/original/3X/3/f/3fdbb46641add28841236a11351e65ee4052a274.pdf) (1.8 KB)

I guess, this bug is regarded to ASCII. UTF-8 should handle this properly.

Any clue how to fix this?

Best

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018年一月22日 00:51 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/2 "2018-01-22T00:51:50Z")

</div>

I am having trouble reproducing it here, both on high sierra and windows.

Does this happen for you on Chrome as well? Does this happen for you on the sample you posted?

---

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [2018年一月22日 00:56 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/3 "2018-01-22T00:56:35Z")

</div>

> [@sam](#):
>
> Does this happen for you on Chrome as well?

Nope.

> [@sam](#):
>
> Does this happen for you on the sample you posted?

yeap.

I’ve no idea what is the reason for. I’ve also did a reset on all of my Safari settings. Mobile Safari seems to work nicely. But the most annoying issue is the wrong file name encoding.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018年一月22日 00:57 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/4 "2018-01-22T00:57:05Z")

</div>

What version is your Safari?

---

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [2018年一月22日 00:57 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/5 "2018-01-22T00:57:46Z")

</div>

Version 11.0.2 (13604.4.7.1.6)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018年一月22日 01:28 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/6 "2018-01-22T01:28:02Z")

</div>

Very confused cause I am unable to report on `4.7.1.3`

---

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [2018年一月22日 11:29 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/7 "2018-01-22T11:29:56Z")

</div>

You can’t repo this on your Safari?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018年一月22日 22:34 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/8 "2018-01-22T22:34:03Z")

</div>

Nope, no repro, anyone else with Safari able to repro this?

---

<div class="post-metadata">

### Author: ![schuschu](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@schuschu](https://meta.discourse.org/u/schuschu)
#### Post date: [2018年一月23日 10:01 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/9 "2018-01-23T10:01:16Z")

</div>

I can reproduce it with Safari Version 11.0.2 (13604.4.7.1.6).  
Downloading files with umlauts in it from other websites (Dropbox) works fine though.

---

<div class="post-metadata">

### Author: ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)
#### Post date: [2018年一月23日 15:37 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/10 "2018-01-23T15:37:46Z")

</div>

I’m seeing the `LÃ¶sung.pdf` as well.

MacOS Sierra (not High Sierra), Safari 11.0.2

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2018年一月23日 15:46 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/11 "2018-01-23T15:46:06Z")

</div>

![25%20PM](https://global.discourse-cdn.com/meta/original/3X/f/6/f6fffcdb57672899a7d405b9ccb58873b53e52fe.png)

---

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [2018年一月23日 23:55 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/12 "2018-01-23T23:55:08Z")

</div>

What does this mean?

 ![17](https://global.discourse-cdn.com/meta/original/3X/5/3/53c66a43d9240f80454f0aa5852cde13adbc19f1.png)

On my servers, I’ve got a blank page. You’re hosting the meta attachments somewhere else and I’ve got this error message. The download on the desktop version of Safari is only possible via context menu “Download linked file”…

Does this issue correspond to the click counter? I’ve also noticed, that external links aren’t working any longer… [sample link](http://arstechnica.com)

 ![11](https://global.discourse-cdn.com/meta/original/3X/d/3/d378d7a62e5cb43888fb970639a902caa289fe1b.png)

or alternatively

 ![35](https://global.discourse-cdn.com/meta/original/3X/6/5/657bc5317fa82d1133fdc58a8bee64018baed67a.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018年一月23日 23:58 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/13 "2018-01-23T23:58:32Z")

</div>

That is actually very helpful @terraboss another customer reported that in a different context.

@awole20 think I am switching service worker support to be gated on user agent and for now will only give it to android.

@supermathie has open weirdness with the service worker and looks like safari may have bugs.

---

<div class="post-metadata">

### Author: ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)
#### Post date: [2018年一月24日 02:10 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/14 "2018-01-24T02:10:14Z")

</div>

Service Workers and Safari, a great match made in heaven… ☹

Thanks for the heads up - That sounds like a good workaround for now. So far it looks like it’s been the caching part of the service worker that’s been tripping safari up, right? I’m actually excited that Safari actually has _some_ support for service workers, but I’m definitely looking forward to the day when it’s more stable.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2018年一月24日 02:21 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/15 "2018-01-24T02:21:45Z")

</div>

> [@terraboss](#):
>
> Does this issue correspond to the click counter? I’ve also noticed, that external links aren’t working any longer… sample link

Is this on normal Safari or the Safari Technology Preview?

---

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [2018年一月24日 03:33 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/17 "2018-01-24T03:33:49Z")

</div>

The normal Safari is affected.

UPDATE: Looks like, you’re [patch](https://github.com/discourse/discourse/commit/7ba06de0d6ca0c807276f11391af5f99badbabcf) @sam is working. Thank you so far!

✅ Downloads and external links are working.  
❌ Just the issue with the umlauts in file name still exists.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2018年一月24日 12:20 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/18 "2018-01-24T12:20:47Z")

</div>

> [@terraboss](#):
>
> The normal Safari is affected.

That patch is reverted.

And I see in Meta logs that you are using Safari Technology Preview, and we don’t support that. Please don’t report bugs in alpha browsers.

---

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [2018年一月24日 12:24 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/19 "2018-01-24T12:24:53Z")

</div>

I use both browsers for testing.

If you wish, I could show you a screen cast, that the stable version of Safari was/is affected. I’ve no clue why.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2018年一月24日 12:27 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/20 "2018-01-24T12:27:05Z")

</div>

Stable Safari has 0 service workers support in their code base, so it can’t show a error message about service workers.

---

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [2018年一月24日 12:30 UTC](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585/21 "2018-01-24T12:30:29Z")

</div>

As I told you:

> [@terraboss](#):
>
> I’ve got a blank page.

… on the stable Version. There was no error message at all.

And for validating / diagnostics, I’ve also tested Safari Technology Preview.

The last one helped me at least to show error messages. Who knows what the actual issue is?

[下一頁](https://meta.discourse.org/t/umlauts-are-not-handled-correctly-for-attached-files-in-safari/78585.md?page=2)
