Why don't you write a little code to find out?
Log.d("APP", "This is the code for the character: " + (int)ch);
Many times, self-discovery is faster than forums, and the knowledge
sticks a lot better.
On Apr 6, 2:07 pm, Kostya Vasilyev <[email protected]> wrote:
> Are they actually different characters, or the good old ones, just drawn
> with a wider, Chinese font?
> 06.04.2011 21:59 пользователь "Hari Edo" <[email protected]> написал:
>
>
>
>
>
> > The characters are made to be the same width as all other
> > Chinese characters, so that text will align as expected.
>
> > Even if I knew NOTHING about Unicode, or UTF-8 encoding,
> > I might decide to type all of the digits on the Chinese
> > soft keyboard, then cut and paste them into my Java code,
> > making a nice little filter with similar logic:
>
> > if (ch == '1') ch = '1';
> > if (ch == '2') ch = '2';
>
> > And so on. If I looked at the integer values of each
> > character, I might notice that they're all in the same
> > order, so I could do something more sophisticated for
> > all conversions in one statement, like:
>
> > ch = (char) ( (int)ch + (int)'1' - (int)'1' )
>
> > Some things require problem-specific code. I would
> > suggest reading up on Unicode, and browsing the
> > UTF-8 or Unicode code tables to learn a bit more.
>
> > Were you hoping for a magic "DWIM" API that just
> > would "Do What I Mean" for any and all situations?
>
> > On Apr 6, 9:38 am, viktor <[email protected]> wrote:
> >> 21212 -- Input from Chinese keyboard
> >> 21212 -- From English keyboard
>
> >> On 6 Кві, 16:22, viktor <[email protected]> wrote:
>
> >> > Hi,
>
> >> > I have got device with Chinese keyboard, when I type digits into
> >> > EditText and compare it with digits from English keyboard I have
> >> > different results.
>
> >> > How to convert Chinese characters to normal charset?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en