Skip to content

Commit

Permalink
Merge pull request #1 from sumup/euro-sign-support-for-cp869
Browse files Browse the repository at this point in the history
[cp869] euro sign support is added
  • Loading branch information
implicitly-awesome authored Nov 23, 2023
2 parents 76db014 + afd6b8f commit 7decb9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mappings/MICSFT/PC/CP869.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Table format: Format A
# Date: 04/24/96
# Contact: [email protected]
#
#
# General notes: none
#
# Format: Three tab-separated columns
Expand Down Expand Up @@ -150,7 +150,7 @@
0x84 #UNDEFINED
0x85 #UNDEFINED
0x86 0x0386 #GREEK CAPITAL LETTER ALPHA WITH TONOS
0x87 #UNDEFINED
0x87 0x20ac #EURO SIGN
0x88 0x00b7 #MIDDLE DOT
0x89 0x00ac #NOT SIGN
0x8a 0x00a6 #BROKEN BAR
Expand Down
2 changes: 2 additions & 0 deletions src/cp869.erl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

%% Public functions
to_unicode(16#86) -> 16#0386;
to_unicode(16#87) -> 16#20ac;
to_unicode(16#88) -> 16#00b7;
to_unicode(16#89) -> 16#00ac;
to_unicode(16#8a) -> 16#00a6;
Expand Down Expand Up @@ -129,6 +130,7 @@ to_unicode(Bin) when is_binary(Bin) -> bin_to_unicode(Bin, <<>>);
to_unicode(Other) -> Other.

from_unicode(16#0386) -> 16#86;
from_unicode(16#20ac) -> 16#87;
from_unicode(16#00b7) -> 16#88;
from_unicode(16#00ac) -> 16#89;
from_unicode(16#00a6) -> 16#8a;
Expand Down

0 comments on commit 7decb9b

Please sign in to comment.