diff options
author | snowleo <schneeleo@gmail.com> | 2012-03-13 03:24:30 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-03-13 03:24:30 +0100 |
commit | b5710769155677daf8b03d72387c038a876d9998 (patch) | |
tree | 6bb6ed2f67b09788a02caf5b04241ce21a4a0cb6 | |
parent | 6ea02b53de2835102a95fead290d87e726f4bb59 (diff) | |
download | Essentials-b5710769155677daf8b03d72387c038a876d9998.tar Essentials-b5710769155677daf8b03d72387c038a876d9998.tar.gz Essentials-b5710769155677daf8b03d72387c038a876d9998.tar.lz Essentials-b5710769155677daf8b03d72387c038a876d9998.tar.xz Essentials-b5710769155677daf8b03d72387c038a876d9998.zip |
Fix broken utf8 characters
-rw-r--r-- | Essentials/src/com/earth2me/essentials/user/User.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/user/User.java b/Essentials/src/com/earth2me/essentials/user/User.java index 5d06b706d..769bb8dff 100644 --- a/Essentials/src/com/earth2me/essentials/user/User.java +++ b/Essentials/src/com/earth2me/essentials/user/User.java @@ -231,8 +231,8 @@ public class User extends UserBase implements IUser displayname = displayname.replace("{SUFFIX}", groups.getSuffix(this)); } displayname = displayname.replace("{WORLDNAME}", this.getWorld().getName()); - displayname = displayname.replace('&', '�'); - displayname = displayname.concat("�f"); + displayname = displayname.replace('&', '\u00a7'); + displayname = displayname.concat("\u00a7f"); return displayname; } @@ -252,7 +252,7 @@ public class User extends UserBase implements IUser } if (name.length() > 16) { - name = name.substring(0, name.charAt(15) == '�' ? 15 : 16); + name = name.substring(0, name.charAt(15) == '\u00a7' ? 15 : 16); } try { |