load() with coding problem

classic Classic list List threaded Threaded
2 messages Options
Lee
Reply | Threaded
Open this post in threaded view
|

load() with coding problem

Lee
onto = get_ontology("file://heshangjijin.owl")
onto.load()
Then I get wrong message:
UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 1035: illegal multibyte sequence
Reply | Threaded
Open this post in threaded view
|

Re: load() with coding problem

Jiba
Administrator
I think there is a problem with your ontology and the character encoding. Do you create it with Protégé?
You should use UTF8 unicode encoding, as it is now the de facto standard.