Solved

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

Posted on 2010-08-23
16
1,076 Views
Last Modified: 2013-11-23
How double byte alphanumeric value auto convert into single byte alphanumeric value  japanese characters
is that possible Java
0
Comment
  • 5
  • 5
  • 3
  • +2
16 Comments
 
LVL 7

Accepted Solution

by:
mquiroz earned 100 total points
ID: 33502484
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
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 200 total points
ID: 33502619
That's not possible
0
 
LVL 92

Expert Comment

by:objects
ID: 33506510
you'll have to limit the range of characters to achieve that
whats the goal?
0
 
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 33508449
how can i limit that ??
 
restric the user to enter double byte  char
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 33508486
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
 
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 33508508
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
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 200 total points
ID: 33508517
If you want to use Japanese characters you *can't* use a single byte space
0
 
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 33508624
Sorry CEHJ :
Can you tell me clearly !!
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 86

Expert Comment

by:CEHJ
ID: 33508711
How much clearer could it be? ;) Japanese cannot be done with one byte per character
0
 
LVL 92

Expert Comment

by:objects
ID: 33508741
> 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
 
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 33508769
@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
 
LVL 86

Expert Comment

by:CEHJ
ID: 33508837
>>Can you refer this

What am i meant to be looking at?
0
 
LVL 92

Assisted Solution

by:objects
objects earned 100 total points
ID: 33508845
its not really practical as you limit yourself to only 128 chars.

we just always use multibytes
0
 

Assisted Solution

by:spavithracse
spavithracse earned 100 total points
ID: 33509359
find the related things in the following link
http://msdn.microsoft.com/en-us/library/cc194845.aspx
0
 

Expert Comment

by:spavithracse
ID: 33509469
use this for converting

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

Open in new window

0
 
LVL 20

Author Closing Comment

by:Sathish David Kumar N
ID: 33535161
Thanks
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now