The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
conversion from Unix to windows kiwi_bloke Shell Programming and Scripting 3 10-10-2005 10:56 AM
Dos to Unix conversion john413 Shell Programming and Scripting 1 09-10-2005 12:13 PM
Unix to EBCDIC conversion Bab00shka UNIX for Dummies Questions & Answers 2 01-20-2005 08:58 AM
unix to windows conversion misc19432043 Filesystems, Disks and Memory 2 10-10-2002 11:08 PM
character conversion sunil bajaj UNIX for Dummies Questions & Answers 3 04-15-2002 08:48 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-29-2008
Registered User
 

Join Date: Feb 2008
Posts: 1
Stumble this Post!
character set conversion in unix C

Hi,

Could anybody explain how to change the character set of a particular string in C in unix. we are using HP-UX as OS. We require to change the input string which is in cp1250 format to utf-8.

A sample code would help. Thnx in advance
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-01-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,808
Stumble this Post!
If you know how to do it at the command line with iconv, create a system() call to write it to a file.

There are C calls: iconv_open(), iconv(), iconv_close() if you need to do it extensively.

try man 3 iconv_open

Example code -
C Library Reference
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0