Convert DBCS to ACII

Posted on 2010-09-14
Last Modified: 2012-05-10

I have string s="sss" // think its dbcs char (That is japaneses char)
String s="0123456"  how this will convert to ascii

My charset format is UTF-8 ;
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
  • 4
  • 2
LVL 86

Expert Comment

ID: 33672363
>>String s="0123456"  how this will convert to ascii

Not sure what the question is ... it would convert to the ascii codes for the first 7 digits?
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 33672422
How to convert to ASCII?
LVL 86

Accepted Solution

CEHJ earned 500 total points
ID: 33672509
You have something that's in Japanese? It's either a char or a String. Japanese can't be represented in ascii
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

LVL 20

Author Comment

by:Sathish David Kumar N
ID: 33672580
its a japanese String ....
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 33672956
Y japanese letter not support ASCII ?
how can i convert this to DBCS to EBCID ? Do yuou have any idea ?? `
LVL 92

Expert Comment

ID: 33677477
LVL 20

Author Closing Comment

by:Sathish David Kumar N
ID: 33817613

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

691 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