Skip to content

Commit

Permalink
- Provide UTF-8 interface for OMEdit
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12116 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jun 19, 2012
1 parent fe5c44e commit 2ac2856
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions OMEdit/OMEditGUI/OMCProxy.cpp
Expand Up @@ -1344,10 +1344,10 @@ bool OMCProxy::loadString(QString value)
//! Parse the file. Doesn't load it into OMC.
//! @param fileName the file to parse.
//! @return bool true on success
bool OMCProxy::parseFile(QString fileName)
bool OMCProxy::parseFile(QString fileName, QString encoding)
{
fileName = fileName.replace('\\', '/');
sendCommand("parseFile(\"" + fileName + "\")");
sendCommand("parseFile(\"" + fileName + "\",\"" + encoding + "\")");
if (getResult() == "{}")
{
printMessagesStringInternal();
Expand Down
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/OMCProxy.h
Expand Up @@ -145,7 +145,7 @@ class OMCProxy : public QObject
QString changeDirectory(QString directory = QString());
bool loadFile(QString fileName);
bool loadString(QString value);
bool parseFile(QString fileName);
bool parseFile(QString fileName, QString encoding = "UTF-8");
QStringList parseString(QString value);
bool createClass(QString type, QString className);
bool createSubClass(QString type, QString className, QString parentClassName);
Expand Down

0 comments on commit 2ac2856

Please sign in to comment.