Skip to content

Commit

Permalink
ApplicationWindow: Preserve unicode when loading/saving
Browse files Browse the repository at this point in the history
Refs #9970
  • Loading branch information
Harry Jeffery committed Sep 23, 2014
1 parent ba96813 commit 3771d4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/MantidPlot/src/ApplicationWindow.cpp
Expand Up @@ -4506,7 +4506,7 @@ ApplicationWindow* ApplicationWindow::openProject(const QString& filename, const
item->folder()->setObjectName(fileInfo.baseName());

//Read the rest of the project file in for parsing
std::string lines = fileTS.readAll().toStdString();
std::string lines = fileTS.readAll().toUtf8().constData();

d_loaded_current = 0;

Expand Down Expand Up @@ -16862,7 +16862,7 @@ QString ApplicationWindow::saveProjectFolder(Folder* folder, int &windowCount, b
{
Mantid::IProjectSerialisable* ips = dynamic_cast<Mantid::IProjectSerialisable*>(w);
if(ips)
text += QString::fromStdString(ips->saveToProject(this));
text += QString::fromUtf8(ips->saveToProject(this).c_str());

++windowCount;
}
Expand Down

0 comments on commit 3771d4a

Please sign in to comment.