Characters Å Ä Ö is not getting displayed in my DDL, how can I tell restclient to utilize a specific charset?

前端 未结 2 595
滥情空心
滥情空心 2021-01-13 04:27

Before I start here is the problem. It should be like this:

Björn Nilsson, instead its displaying strange special characters, all values that have characters Å, Ä a

2条回答
  •  迷失自我
    2021-01-13 04:49

    There is most likely a mismatch between the character set of the text and what the browser interprets as the character set.

    Do you have a tag for content or charset?

    Given the character set you send is UTF-8, and you are using HTML5, this would be the appropriate tag

    
    

    Or in earlier versions of HTML

    
    

    For iso-8859-1 or any other charset, just replace the charset attribute.

提交回复
热议问题