Unable to translate bytes [FC] at index 35 from specified code page to Unicode

前端 未结 4 457
你的背包
你的背包 2021-01-02 06:56

I\'m trying to send an object like this to my REST API(built with asp net core)

{
    \"firstName\":\"tersü\",
    \"lastName\":\"asda\"
}

4条回答
  •  离开以前
    2021-01-02 07:11

    I was having this error when working with SSRS on a .rdl file. The solution was that I needed to save the file as an unsigned UTF-8 file rather than a signed UTF-8 file. Here is how you do that in Visual Studio:

    1. Open your XML code by going to View -> Code, or pressing F7
    2. While viewing your XML code page, select File -> Advanced Save Options
    3. In the resulting pop-up windows select, "Unicode (UTF-8 without signature)..."
    4. Click OK

    That fixed the problem for me, I hope it helps!

提交回复
热议问题