Solved

shift_jis to utf-8 conversion

Posted on 2004-08-09
6
1,285 Views
Last Modified: 2008-03-04
how can I convert text in shift_jis encoding to utf-8 ? I am using AIX 4.3 (not windows) . any help is appreciated :-) ..thnx
0
Comment
Question by:t_swapnil
  • 2
6 Comments
 

Author Comment

by:t_swapnil
ID: 11752014
I need to check if how can I convert shift_jis to ASCII..Then I can think of one way as -
1) shift_jis to ascii
2) ascii to unicode using mbstowcs
3) convert unicode to utf-8 ???

Is there any simpler way ?
0
 
LVL 1

Expert Comment

by:dumbo2569
ID: 11778260
UTF-8 is backwards compatible with ASCII. If you convert shift_jis to ASCII, then it is already UTF8. There is no need to convert ASCII->UNICODE->UTF8.

All ASCII characters are represented the same in UTF-8.



0
 

Author Comment

by:t_swapnil
ID: 12109504
Sorry for not updating .. I found the anser..
iconv_open(strToCodePage,strFromCodePage)

Thanks,
Swapnil
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12119186
PAQed, with points refunded (200)

Computer101
E-E Admin
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Parsing XML instructions in Java/any other language.... 3 110
FMX enumerated colours 2 100
IdTCPClient1->Disconnect(); not working 3 67
C++ mouse_event mouse look 7 83
When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
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…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

777 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