Tony CHEMIT pushed to branch develop-5.x at ultreiaio / ird-observe
Commits:
-
62644877
by Tony CHEMIT at 2017-06-13T12:05:26+02:00
1 changed file:
Changes:
| ... | ... | @@ -31,6 +31,7 @@ import fr.ird.observe.services.service.AddSqlScriptProducerResult; |
| 31 | 31 |
import fr.ird.observe.services.service.DeleteSqlScriptProducerRequest;
|
| 32 | 32 |
import fr.ird.observe.services.service.SqlScriptProducerService;
|
| 33 | 33 |
import fr.ird.observe.services.topia.ObserveServiceTopia;
|
| 34 |
+import java.nio.charset.StandardCharsets;
|
|
| 34 | 35 |
import org.apache.commons.logging.Log;
|
| 35 | 36 |
import org.apache.commons.logging.LogFactory;
|
| 36 | 37 |
import org.nuiton.topia.service.sql.batch.SqlRequests;
|
| ... | ... | @@ -67,7 +68,7 @@ public class SqlScriptProducerServiceTopia extends ObserveServiceTopia implement |
| 67 | 68 |
try (ByteArrayOutputStream out = new ByteArrayOutputStream()) {
|
| 68 | 69 |
|
| 69 | 70 |
ImmutableSet.Builder<ObserveBlobsContainer> observeBlobContainers = ImmutableSet.builder();
|
| 70 |
- try (Writer writer = new OutputStreamWriter(new GZIPOutputStream(out))) {
|
|
| 71 |
+ try (Writer writer = new OutputStreamWriter(new GZIPOutputStream(out), StandardCharsets.UTF_8)) {
|
|
| 71 | 72 |
|
| 72 | 73 |
TopiaSqlBatchService sqlBatchService = serviceContext.getTopiaApplicationContext().getSqlBatchService();
|
| 73 | 74 |
SqlRequests.Builder builder = sqlBatchService.requestBuilder().to(writer);
|