Unicode to CP1252
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.
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