S
Sameer
Hello,
In the process of designing a chatting system, I have to send some text
from one machine to another. This text usually contains 3 to 4 parts
separated by a token like ~ or ^ or $. At the other end I use
StringTokenizer to decode the text.
It is expected that the texts separated by these tokens must not
contain such tokens. We do not expect such things from users and a user
may type a message which contain these tokens and it will lead to
malfunctioning of the chatting system.
Can I insert some special character tokens which can not be generated
by keyboard easily or in general typing.
How to generate such token characters?
Please give answer in Java and Unicode context.
Give methods for coding and decoding of characters and to embed them in
text.
-Sameer
In the process of designing a chatting system, I have to send some text
from one machine to another. This text usually contains 3 to 4 parts
separated by a token like ~ or ^ or $. At the other end I use
StringTokenizer to decode the text.
It is expected that the texts separated by these tokens must not
contain such tokens. We do not expect such things from users and a user
may type a message which contain these tokens and it will lead to
malfunctioning of the chatting system.
Can I insert some special character tokens which can not be generated
by keyboard easily or in general typing.
How to generate such token characters?
Please give answer in Java and Unicode context.
Give methods for coding and decoding of characters and to embed them in
text.
-Sameer