Skip to content

Commit e895482

Browse files
authored
Merge pull request #28 from jwakely/encoding
Fix bogus encoding of Euro symbol, use UTF-8
2 parents d67f8e7 + b12d22c commit e895482

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/autoprefixes.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct thing_base_unit : boost::units::base_unit<thing_base_unit, boost::units::
6767
struct euro_base_unit : boost::units::base_unit<euro_base_unit, boost::units::dimensionless_type, 5>
6868
{
6969
static constexpr const char* name() { return("EUR"); }
70-
static constexpr const char* symbol() { return(""); }
70+
static constexpr const char* symbol() { return(""); }
7171
};
7272

7373
int main()
@@ -140,7 +140,7 @@ int main()
140140

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

145145

146146
return 0;

0 commit comments

Comments
 (0)