RobertIndie opened a new issue, #1700:
URL: https://github.com/apache/streampipes/issues/1700
### Apache StreamPipes version
dev (current development state)
### Affected StreamPipes components
Connect, Processing Elements
### What happened?
I'm developing a custom adapter. And I want to use Chinese to write the
locale file for the adapter. Seems that currently the streampipes will only
read the translation document from `strings.en`. Therefore I could only write
the document in `strings.en`.
But it has a problem with incorrect encoding format:
```
curl
http://admin:admin@localhost:5984/adapterdescription/sp:xxx.my.adapter | jq .
| grep label
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left Speed
100 10090 100 10090 0 0 23837 0 --:--:-- --:--:-- --:--:--
24138
"label": "Broker å°å",
"label": "ä¸è¿è¡è®¤è¯",
"label": "ç¨æ·å",
"label": "å¯ç ",
"label": "ç¨æ·ç»",
"label": "ç¨æ·å/å¯ç ",
"label": "è®¿é®æ¨¡å¼",
"label": "主é¢",
"label": "Single Object",
"label": "Array",
"label": "Key",
"label": "Delimiter",
"label": "Array Field",
"label": "GeoJSON",
"label": "",
"label": "Json",
"label": "Json",
"label": "Delimiter",
"label": "Header",
"label": "CSV",
"label": "CSV",
"label": "Tag",
"label": "XML",
"label": "XML",
"label": "Image",
"label": "Image",
"label": "Format",
```
It looks like there is only one place to read the `strings.en`:
https://github.com/apache/streampipes/blob/f9c6e204562c68d74cf08cd885343f425dfc4e17/streampipes-maven-plugin/src/main/java/org/apache/streampipes/smp/extractor/LocalesExtractor.java#L54-L58
I'm trying to specify the file encoding:
```
private Properties loadProperties(String localesPath) throws IOException {
Properties props = new Properties();
props.load(new InputStreamReader(new FileInputStream(localesPath),
StandardCharsets.UTF_8));
return props;
}
```
But it didn't work. (I've made sure to remove the `adapterdescriptionn` db
from CouchDB before redeploying)
Do you have any ideas to solve this issue? Thanks!
### How to reproduce?
_No response_
### Expected behavior
_No response_
### Additional technical information
_No response_
### Are you willing to submit a PR?
None
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]