Ascold
Ascold

Reputation: 45

Thermocycle library and OpenModelica

I want to load Thermocycle library by OpenModelica connect edition. But I get a message "The file was not encoded in UTF-8"

To fix this problem I should: "add a file package.encoding at the top-level." But I don't understand what must I do? What is the file which called "package.encoding", what should this file consist from? Where should I insert it?

Upvotes: 1

Views: 554

Answers (1)

Adeel Asghar
Adeel Asghar

Reputation: 587

The error message says it all. "add a file package.encoding at the top-level."

Put the file where your library's package.mo is located. The file must contain the name of encoding used by the library.

Note that you can also use OMEdit's encoding conversion feature. File->Open/Convert Modelica File(s) With Encoding

Upvotes: 2

Related Questions