accented French characters

前端 未结 5 1103
攒了一身酷
攒了一身酷 2020-12-21 17:31

Is there any problem with ASPX to render french accented characters?

I am using utf-8 to encode.

I never had any problem like this before (but since this is

5条回答
  •  不思量自难忘°
    2020-12-21 18:00

    My first thougt was that you do not send the correct headers for utf-8. But using header reader at web-sniffer shows that the headers are correct.

    The broblems seems to be that you have converted the text into utf-8 twice.

    When I look at the HTML source of your page with Firefox "View Page Source" using ISO-8859-1 encoding, your example text shows as:

    Pour recevoir les communications de l’école par courriel, veuillez nous indiquer votre adresse courriel

    That is, the 2 non-ASCII characters in the word l'école have been converted into 5 bytes, and those 5 bytes have then been converted again into 12 bytes.

提交回复
热议问题