A
angelochen960
Hi,
I use UID to generate a unique number in a server app, here is my
code:
UID inviteId = new UID();
String uid = new sun.misc.BASE64Encoder().encode(inviteId.toString
().getBytes());
sample output:
NjhkZmMyNDQ6MTIwMTQ0YTYwMDk6LTgwMDA=
I'd like to have a unique string consists of normal characters, not
sings like = and others, any hint on this? Thanks,
A.c
p.s. normal character set, i meant A to Z, a to z, 0..9
I use UID to generate a unique number in a server app, here is my
code:
UID inviteId = new UID();
String uid = new sun.misc.BASE64Encoder().encode(inviteId.toString
().getBytes());
sample output:
NjhkZmMyNDQ6MTIwMTQ0YTYwMDk6LTgwMDA=
I'd like to have a unique string consists of normal characters, not
sings like = and others, any hint on this? Thanks,
A.c
p.s. normal character set, i meant A to Z, a to z, 0..9