Closed gothub closed 4 years ago
The check resource.license.present.1' produces the following error when run against pidPPBioAmOc.229.3`:
resource.license.present.1' produces the following error when run against pid
UnicodeEncodeError: 'ascii' codec can't encode character u'\u201c' in position 0: ordinal not in range(128) in <script> at line number 26
The character referenced in the error message is a double quote.
The check script needs to encode the metadata value into a unicode type variable, as currently it uses the default Python encoding, which is ASCII.
This was fixed by using the metadig python library function toUnicode, in commit a84d0754b95f75ff8dff62ebcc9927c4d5f1f513
toUnicode
The check
resource.license.present.1' produces the following error when run against pid
PPBioAmOc.229.3`:The character referenced in the error message is a double quote.
The check script needs to encode the metadata value into a unicode type variable, as currently it uses the default Python encoding, which is ASCII.