linkedpipes / discovery-legacy

The LinkedPipes Discovery implementation here is deprecated and replaced by a new one.
1 stars 3 forks source link

UnmappableCharacterException in DataSample.scala #25

Open marziacutajar opened 5 years ago

marziacutajar commented 5 years ago

When running discovery on Windows, I had encountered the below exception in the DataSample class, where data.mkString is referenced: Exception in thread "main" java.nio.charset.UnmappableCharacterException: Input length = 1

It seemed to have been an issue with the encoding of the 'data' variable assigned on the previous line. A small fix has been made on the lpapps_fixes branch as per below:

val data = Source.fromURL(e.descriptorIri.get)("UTF-8")
DataSample(data.mkString)