Solved

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

Posted on 2010-08-23
16
1,160 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
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
 
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn different types of Android Layout and some basics of an Android App.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This video teaches viewers about errors in exception handling.
Suggested Courses

623 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