From b7087b80d258e02681349bb7c444ea98f70ebc47 Mon Sep 17 00:00:00 2001 From: wjoe Date: Thu, 22 Dec 2011 15:59:23 +0000 Subject: Changed currency symbols to unicode values --- blaconvert.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'blaconvert.java') 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; } -- cgit v1.2.3