L2JMobius

Public Development => Shares/Contributions => Topic started by: MrUnzO on April 09, 2021, 08:29:12 AM

Title: Cant create character with some unicode char
Post by: MrUnzO on April 09, 2021, 08:29:12 AM
I just try to create character with unicode char and some character can not accept by server such as [อิ] the -ิ is the problem.

Diff patch
Code: [Select]
diff --git a/java/org/l2jmobius/gameserver/util/Util.java b/java/org/l2jmobius/gameserver/util/Util.java
index f1f3991d1c5da060a67a5ed21dc02ddb62abd1af..4f041a0557cdd91e59ef74b036312cdfad96605d 100644
--- a/java/org/l2jmobius/gameserver/util/Util.java
+++ b/java/org/l2jmobius/gameserver/util/Util.java
@@ -340,7 +340,7 @@ public class Util
  }
  for (char c : text.toCharArray())
  {
- if (!Character.isLetterOrDigit(c))
+ if (!Character.isJavaIdentifierPart(c))
  {
  return false;
  }


All chronicle (i think) but i work on Classic 2.2
Title: Re: Cant create character with some unicode char
Post by: Mobius on April 09, 2021, 10:50:26 AM
Moved to contributions.
Title: Re: Cant create character with some unicode char
Post by: Mobius on April 19, 2021, 12:23:52 PM
This should be made with a config.
As
EnableUTF8names = True
Title: Re: Cant create character with some unicode char
Post by: MrUnzO on April 20, 2021, 12:10:58 PM
This should be made with a config.
As
EnableUTF8names = True
will update  8)