How double byte alphanumeric value auto convert into single byte alphanumeric value japanese characters

How double byte alphanumeric value auto convert into single byte alphanumeric value  japanese characters
is that possible Java
LVL 20
Sathish David  Kumar NArchitectAsked:
Who is Participating?
 
mquirozConnect With a Mentor Commented:
I don't think is possible 'cause the number of characters in japaneses y way out of the range you could represent by a number smaller than 255 (which is the single byte maximum number of caracters), japanese at least must have a couple of thousand characters that's why you must use double byte so that the number of characters can be up to 65,000 (255 x 255)
0
 
CEHJConnect With a Mentor Commented:
That's not possible
0
 
objectsCommented:
you'll have to limit the range of characters to achieve that
whats the goal?
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
Sathish David Kumar NArchitectAuthor Commented:
how can i limit that ??
 
restric the user to enter double byte  char
0
 
CEHJCommented:
If you want to restrict the space to a maximum of two bytes per character, you need UTF-16, not UTF-8 (which can use as many as four)
0
 
Sathish David Kumar NArchitectAuthor Commented:
I want only singel byte not double byte .. so i can use UTF-8 right ?
IF the user enter double byte then i give warning ?
how can i give that ??
0
 
CEHJConnect With a Mentor Commented:
If you want to use Japanese characters you *can't* use a single byte space
0
 
Sathish David Kumar NArchitectAuthor Commented:
Sorry CEHJ :
Can you tell me clearly !!
0
 
CEHJCommented:
How much clearer could it be? ;) Japanese cannot be done with one byte per character
0
 
objectsCommented:
> I want only singel byte not double byte .. so i can use UTF-8 right ?

No, UTF-8 use 1-4 bytes for a char (ASCII uses 1 byte)
0
 
Sathish David Kumar NArchitectAuthor Commented:
@CEHJ
Can you refer this
https://account.edit.yahoo.co.jp/registration?.done=http%3A//mail.yahoo.co.jp/&.src=ym 
@objects
>>>>you'll have to limit the range of characters to achieve that

How can i do that ?? How can i achive
0
 
CEHJCommented:
>>Can you refer this

What am i meant to be looking at?
0
 
objectsConnect With a Mentor Commented:
its not really practical as you limit yourself to only 128 chars.

we just always use multibytes
0
 
spavithracseConnect With a Mentor Commented:
find the related things in the following link
http://msdn.microsoft.com/en-us/library/cc194845.aspx
0
 
spavithracseCommented:
use this for converting

header ('Content-type: text/html; charset=utf-8');

Open in new window

0
 
Sathish David Kumar NArchitectAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.