UTF-8 issue in Firefox - response header overriding meta tag?

前端 未结 2 1491
甜味超标
甜味超标 2021-01-20 04:26

I have a page with the following meta tag:


I thought this w

2条回答
  •  北恋
    北恋 (楼主)
    2021-01-20 05:32

    It turns out that there was an issue with the Flash fallback in jPlayer. Firefox uses Flash to play the mp3.

    Here's the fix from the developer of jPlayer:

    Use the encodeURI(url) JavaScript command to encode the URL in JavaScript before passing the url to setMedia. For example:

    $ ("#id").jPlayer("setMedia", {
       mp3: encodeURI("http://domain.com/audio/大地書房.mp3")
    });
    

提交回复
热议问题