Compare commits
6 Commits
v2.0.17
...
eec3853af9
Author | SHA1 | Date | |
---|---|---|---|
eec3853af9 | |||
25e114dbea | |||
740116c7ba | |||
5899bd646b | |||
1d33a81ad2 | |||
b58efae107 |
2
.github/workflows/pypi-deploy.yml
vendored
2
.github/workflows/pypi-deploy.yml
vendored
@@ -3,7 +3,7 @@ name: CI Build Wheel
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
#branches: [master]
|
# branches: [master]
|
||||||
tags: ["v[0-9]+.[0-9]+.[0-9]+"]
|
tags: ["v[0-9]+.[0-9]+.[0-9]+"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
[](https://img.shields.io/github/license/RecordEvolution/IMCtermite)
|
[](https://img.shields.io/github/license/RecordEvolution/IMCtermite)
|
||||||
[](https://img.shields.io/github/stars/RecordEvolution/IMCtermite)
|
[](https://img.shields.io/github/stars/RecordEvolution/IMCtermite)
|
||||||

|

|
||||||
[](https://pypi.org/project/IMCtermite/)
|
[](https://pypi.org/project/IMCtermite/)
|
||||||
|
|
||||||
# IMCtermite
|
# IMCtermite
|
||||||
|
@@ -496,35 +496,28 @@ namespace imc
|
|||||||
// convert any description, units etc. to UTF-8 (by default)
|
// convert any description, units etc. to UTF-8 (by default)
|
||||||
void convert_encoding()
|
void convert_encoding()
|
||||||
{
|
{
|
||||||
// actual input codepage
|
|
||||||
std::string cpn;
|
|
||||||
|
|
||||||
if ( !codepage_.empty() )
|
if ( !codepage_.empty() )
|
||||||
{
|
{
|
||||||
// construct iconv-compatible name for respective codepage
|
// construct iconv-compatible name for respective codepage
|
||||||
cpn = std::string("CP") + codepage_;
|
std::string cpn = std::string("CP") + codepage_;
|
||||||
}
|
|
||||||
else {
|
|
||||||
// assume codepage 1252 by default
|
|
||||||
cpn = std::string("CP1252");
|
|
||||||
}
|
|
||||||
|
|
||||||
// set up converter
|
// set up converter
|
||||||
std::string utf = std::string("UTF-8");
|
std::string utf = std::string("UTF-8");
|
||||||
iconverter conv(cpn,utf);
|
iconverter conv(cpn,utf);
|
||||||
|
|
||||||
conv.convert(name_);
|
conv.convert(name_);
|
||||||
conv.convert(comment_);
|
conv.convert(comment_);
|
||||||
conv.convert(origin_);
|
conv.convert(origin_);
|
||||||
conv.convert(origin_comment_);
|
conv.convert(origin_comment_);
|
||||||
conv.convert(text_);
|
conv.convert(text_);
|
||||||
conv.convert(language_code_);
|
conv.convert(language_code_);
|
||||||
conv.convert(yname_);
|
conv.convert(yname_);
|
||||||
conv.convert(yunit_);
|
conv.convert(yunit_);
|
||||||
conv.convert(xname_);
|
conv.convert(xname_);
|
||||||
conv.convert(xunit_);
|
conv.convert(xunit_);
|
||||||
conv.convert(group_name_);
|
conv.convert(group_name_);
|
||||||
conv.convert(group_comment_);
|
conv.convert(group_comment_);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// get info string
|
// get info string
|
||||||
|
@@ -1 +1 @@
|
|||||||
2.0.16
|
2.0.20
|
||||||
|
Reference in New Issue
Block a user