Skip to content

Commit

Permalink
Merge pull request boostorg#28 from jwakely/encoding
Browse files Browse the repository at this point in the history
Fix bogus encoding of Euro symbol, use UTF-8
  • Loading branch information
jhunold authored Sep 14, 2018
2 parents d67f8e7 + b12d22c commit e895482
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/autoprefixes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct thing_base_unit : boost::units::base_unit<thing_base_unit, boost::units::
struct euro_base_unit : boost::units::base_unit<euro_base_unit, boost::units::dimensionless_type, 5>
{
static constexpr const char* name() { return("EUR"); }
static constexpr const char* symbol() { return(""); }
static constexpr const char* symbol() { return(""); }
};

int main()
Expand Down Expand Up @@ -140,7 +140,7 @@ int main()

quantity<euro_base_unit::unit_type> ce = 2048. * euro_base_unit::unit_type();
cout << name_format << engineering_prefix << ce << endl; // 2.048 kiloEUR
cout << symbol_format << engineering_prefix << ce << endl; // 2.048 k€
cout << symbol_format << engineering_prefix << ce << endl; // 2.048 k€


return 0;
Expand Down

0 comments on commit e895482

Please sign in to comment.