デンマーク語の文字を含む CSV ファイルを作成するコード
Response.ClearContent();
Response.AddHeader("content-disposition", attachment);
Response.ContentType = "application/csv;charset=utf-8";
Response.Charset = "utf-8";
Response.Write(sb.ToString());
Response.End();
理由はわかりませんが、結果の CSV が作成されると、デンマーク語の文字が次のような特殊文字に置き換えられ??j
ます。