Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
e5a5a332
Commit
e5a5a332
authored
Nov 01, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
converted UTF-8
parent
12f1de8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
main.cpp
src/core/main.cpp
+5
-5
UBDocumentController.cpp
src/document/UBDocumentController.cpp
+0
-0
No files found.
src/core/main.cpp
View file @
e5a5a332
/*
/*
* Copyright (C) 2012 Webdoc SA
* Copyright (C) 2012 Webdoc SA
*
*
* This file is part of Open-Sankor
.
* This file is part of Open-Sankor
é.
*
*
* Open-Sankor
is free software; you can redistribute it and/or
* Open-Sankor
é
is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation, version 2,
* License as published by the Free Software Foundation, version 2,
* with a specific linking exception for the OpenSSL project's
* with a specific linking exception for the OpenSSL project's
* "OpenSSL" library (or with modified versions of it that use the
* "OpenSSL" library (or with modified versions of it that use the
* same license as the "OpenSSL" library).
* same license as the "OpenSSL" library).
*
*
* Open-Sankor
is distributed in the hope that it will be useful,
* Open-Sankor
é
is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
* Library General Public License for more details.
*
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Library General Public
* License along with Open-Sankor
;
if not, see
* License along with Open-Sankor
é;
if not, see
* <http://www.gnu.org/licenses/>.
* <http://www.gnu.org/licenses/>.
*/
*/
...
@@ -102,7 +102,7 @@ int main(int argc, char *argv[])
...
@@ -102,7 +102,7 @@ int main(int argc, char *argv[])
//when importing a sankore file that contains a non standard character
//when importing a sankore file that contains a non standard character
//the codecForLocale or the codecForCString is used to convert the file path
//the codecForLocale or the codecForCString is used to convert the file path
//into a const char*. This is why in french windows setup the codec name shouldn't be
//into a const char*. This is why in french windows setup the codec name shouldn't be
//set to UTF-8. For example, setting UTF-8, will convert "Ha
ti" into "Ha-t
i.
//set to UTF-8. For example, setting UTF-8, will convert "Ha
ïti" into "HaÂ-t
i.
QTextCodec
::
setCodecForTr
(
QTextCodec
::
codecForName
(
"UTF-8"
));
QTextCodec
::
setCodecForTr
(
QTextCodec
::
codecForName
(
"UTF-8"
));
//QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
//QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
...
...
src/document/UBDocumentController.cpp
100755 → 100644
View file @
e5a5a332
File mode changed from 100755 to 100644
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment