Skip to contentSkip to conversation

Unicode to CP1252

DISCUSSION tblue 2 participants 2 messages Oct 8, 2009

lore
Share & tools
lore

tblue

author
#0 lore raw

Hi,

I need to convert a windows ANSI test file to unicode in Linux. Later the
data needs to be saved from Unicode to ANSI.

Can anyone recommend a function call that would allow me to achieve this. An example code showing how to use it would be a bonus.

Thankyou.
Regards
Blue.

Signature · 2 lines
View this message in context: http://www.nabble.com/Unicode-to-CP1252-tp25802503p25802503.html
Sent from the linux-c-programming mailing list archive at Nabble.com.
#1 lore raw
Quoted 6 lines · tblue

I need to convert a windows ANSI test file to unicode in Linux. Later the
data needs to be saved from Unicode to ANSI.

Can anyone recommend a function call that would allow me to achieve this. An example code showing how to use it would be a bonus.

iconv_open(), iconv() and iconv_close(). See the manual pages for a description. I guess with Unicode you mean UTF-8.

Regards,
Bernhard