32 | | * Missing ImmTextIntervalPersister on server. |
| 32 | * Books on server cannot contain text |
| 33 | * ImmTextIntervalPersister is not registered as extension in BaseModelTextModule, so it cannot be used by the server. Registering the persister enables texts on server. |
| 34 | * Windows encoding. |
| 35 | * The problem is not in the server, it is in the way the client posts and reads data. OutputStreamWriter and InputStreamReader use the default system charset if nothing is specified. And their usage in MultiPartRequest must be as follows: |
| 36 | |
| 37 | {{{ |
| 38 | OutputStreamWriter writer = new OutputStreamWriter( |
| 39 | this.connection.getOutputStream(), Charset.forName("UTF-8")); |
| 40 | }}} |
| 41 | and |
| 42 | {{{ |
| 43 | InputStreamReader input = new InputStreamReader( |
| 44 | this.connection.getInputStream(), Charset.forName("UTF-8")); |
| 45 | }}} |