Skip to main content
shantanub0980
November 4, 2024
Solved

Web API not supporting Swedish character filename

  • November 4, 2024
  • 8 replies
  • 0 views

Hi All,

In Web API, when Appian receives file in binary format, we are using Appian-Document-Name field in the header to pass file name. And it is working fine when for English characters but when comes to Swedish file names it gives random some values in the file name. 

For Example, Expected file name ÖPPNA.pdf, actual output cames ?PPNA.pdf

Best answer by shantanub0980

Now I understood, you are referring to Appian-Document-Name header where we are passing file name it should to be encode with UTF-8 then Appian will detect properly. Am I correct?

8 replies

stefanhelzle0001
November 4, 2024

How do you encode that filename in the header? Ist that valid UTF8?

shantanub0980
November 4, 2024

Passed Content-Type header as application/json; charset=utf-8 but still it showing ? for Swedish characters in file name

stefanhelzle0001
November 4, 2024

You can pass any header you want, but as long as the actual character encoding is not correct, any special characters will get messed up.