본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

html 5 charset issue

  • 1 답장
  • 6 이 문제를 만남
  • 1 보기
  • 최종 답변자: gnittala

more options

We have an application using html5. The server returns an accepted charset of utf-8. On the page is the following meta-tag: <meta charset="utf-8">.

When inputting "special"characters (é, è, à, etc) and submitting the form, firefox translates this to these characters: éÃ. Further examination tells us that these are utf-8 representations of the iso-8859-1 values for the given characters. (we are using firefox on windows)

When putting the accept-charset on the html-form, the issue is solved. However when reading the html5 spec, it seems to me that firefox should interpret either the server response or the meta-tag and submit the content as utf-8.

We have the same issue in chrome, however in IE it seems to work.

We have an application using html5. The server returns an accepted charset of utf-8. On the page is the following meta-tag: <meta charset="utf-8">. When inputting "special"characters (é, è, à, etc) and submitting the form, firefox translates this to these characters: éÃ. Further examination tells us that these are utf-8 representations of the iso-8859-1 values for the given characters. (we are using firefox on windows) When putting the accept-charset on the html-form, the issue is solved. However when reading the html5 spec, it seems to me that firefox should interpret either the server response or the meta-tag and submit the content as utf-8. We have the same issue in chrome, however in IE it seems to work.

모든 댓글 (1)

more options

Hello,

Can you please confirm the following

  1. The file is saved with UTF-8 encoding
  2. Are the pages getting served by server side scripting (PHP etc) or is it a HTML+JS single page application
  3. Is it possible for you to provide a sample of the <meta> tag you are using

Like you mentioned, if you did provide the charset in the meta tag, it is not required to set the charset for the form (provided the charset is the same), but the browser should be able to identify the charset properly.

Can you please check these links to see if having the charset within the first 512/1024 bytes of the page is causing this issue

  1. Setting default encoding of a page to UTF-8
  2. Charset identified wrongly as Western-8859-1 for a UTF-8 page
  3. Details on MetaCharSetAttribute
  4. Meta on MDN

Thank you