diff options
author | wjoe <joe@lc8n.com> | 2011-12-22 15:59:23 +0000 |
---|---|---|
committer | wjoe <joe@lc8n.com> | 2011-12-22 15:59:23 +0000 |
commit | b7087b80d258e02681349bb7c444ea98f70ebc47 (patch) | |
tree | 818d327311d952b4c36c1a7cb8ca4eb93c35559b | |
parent | 8d7481c6c1705f2e40e40894fe90cb95af466eaf (diff) |
Changed currency symbols to unicode values
-rw-r--r-- | blaconvert.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/blaconvert.java b/blaconvert.java index 7a1d087..0ade3f4 100644 --- a/blaconvert.java +++ b/blaconvert.java @@ -126,11 +126,10 @@ public class blaconvert { boolean currency = false; if(amount.startsWith("£") || amount.startsWith("$") || amount.startsWith("¥")) { - amount.replaceAll("£","%A3"); - amount.replaceAll("$","%24"); - amount.replaceAll("€","%8010"); + amount.replaceAll("\u00A3","%A3"); + amount.replaceAll("\u0024","%24"); amount.replaceAll("\u20AC","%8010"); - amount.replaceAll("¥","%A5"); + amount.replaceAll("\u00A5","%A5"); currency = true; } |