Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1207
  • Last Modified:

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
0
Sathish David  Kumar N
Asked:
Sathish David  Kumar N
  • 5
  • 5
  • 3
  • +2
5 Solutions
 
mquirozCommented:
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
 
CEHJCommented:
That's not possible
0
 
objectsCommented:
you'll have to limit the range of characters to achieve that
whats the goal?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Sathish David Kumar NAuthor 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 NAuthor 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
 
CEHJCommented:
If you want to use Japanese characters you *can't* use a single byte space
0
 
Sathish David Kumar NAuthor 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 NAuthor 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
 
objectsCommented:
its not really practical as you limit yourself to only 128 chars.

we just always use multibytes
0
 
spavithracseCommented:
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 NAuthor Commented:
Thanks
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 5
  • 5
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now