encoding

Transfer "complex" DTO via REST

I have to transfer a quite complex “data transfer object” (DTO) from an Android app via REST to a backend server. I use the Spring framework (Spring boot) which by default encodes the DTO via Jackson. However, the server never recognizes this object as a whole and assignes it or a subset of it to null.

I will explain a solution for the popular Open-Source tool Filezilla. Other FTP tools might handle charset encoding differently.

FileZilla offers three different charset settings:

  1. Autodetect
  2. Force UTF-8
  3. Use custom charset

Per default, FileZilla tries to detect the correct charset on its own. If this doesn’t work and your server uses some custom charset encoding, you need to set it via the Site Manager. In the tab “Charset”, a custom charset encoding can be specified for each individual server. Once it’s set, the specified charset encoding will be used for all future connections to this server and the filenames will be correct.

Subscribe to encoding