clarin-eric / switchboard-tool-registry

The Switchboard Tool Registry
GNU General Public License v3.0
4 stars 13 forks source link

Encoding issues when calling Perseus #102

Closed andmor- closed 3 years ago

andmor- commented 3 years ago

Perseus was added to staging in #63 but it seems there are encoding issues. See the following link and click any "perseus" tool

https://beta-switchboard.clarin.eu/#/vlo/https%3A%2F%2Fclarinws.informatik.uni-leipzig.de%2Fclarinwebservices%2Fsentences%2F11022%2F0000-0000-7F6E-8%2Fsentencestext%2F%3FdataproviderId%3D98/text%2Fplain/por

emanueldima commented 3 years ago

Indeed Perseus expects a Windows-1252 encoding, while the switchboard sends UTF-8.

andmor- commented 3 years ago

Do we have to transcode or can Perseus be called with a different encoding?

emanueldima commented 3 years ago

I don't know of any option to specify the encoding in the service itself. I have to change Switchboard to do that.

andmor- commented 3 years ago

OK. No rush while Perseus is not in production

emanueldima commented 3 years ago

Replaced Perseus with the more modern Scaife Viewer