March 28, 20178 yr How do I trade people with a space in their username? name.replaceAll(" ", "\\u00a0") This code doesn't work.
March 28, 20178 yr 24 minutes ago, The Undefeated said: How do I trade people with a space in their username? name.replaceAll(" ", "\\u00a0") This code doesn't work. Try: name = name.replace(' ', '\u00A0'); Edited March 28, 20178 yr by Explv
March 28, 20178 yr 3 minutes ago, Explv said: Are you sure you need to insert a nonbreaking space? If yes, then try: name = name.replace(' ', '\u00A0'); This worked for me Thanks!
March 28, 20178 yr Author 12 minutes ago, Explv said: Are you sure you need to insert a nonbreaking space? If yes, then try: name = name.replace(' ', '\u00A0'); What if the username has more than 1 space?
March 28, 20178 yr 20 minutes ago, The Undefeated said: What if the username has more than 1 space? That will replace them all
Create an account or sign in to comment