Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » Chrstos
  • » Profile

Posts

Posts

Oct-17-12 23:38:59
Loading in a library that is not UTF-8 encoded

Adrian,

Thank you, that loads now.  In the future, is a way for me to convert older libraries to UTF-8 and Modelica 3.x?

Oct-17-12 20:59:24
Loading in a library that is not UTF-8 encoded

I am new to OpenModelica, and as an exercise downloaded the MotorCycleDynamics Library from Modelica.org (The file was not encoded in UTF-8)  Trying to load this in OMEdit 1.8.1 under Windows resulted in an error saying "The File was not encoded in UTF-8"  There were two more messages:

  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.

The library is from 2006 and it says on Modelica.org that it has been tested in Dymola.  However, is there a way to convert the library or load library's not UTF-8 encoded?

  • Index
  • » Users
  • » Chrstos
  • » Profile
You are here: