Converting ISO-8859-1 data to UTF-8 (and back again)

Filed under: Windows — jac @ February 22, 2005 - 7:32 pm

Recently I had to convert ISO-8859-1 data to UTF-8. The quick and easy way to do this is to use iconv from the command line. Unfortunately this had to be done from within a Visual C++/MFC application on Windows (so Cygwin wasn’t really an option). Fortunately, I found libiconv-win32. I installed the source and built the library (part of the process involves installing gettext for Win32 – just follow the instructions).

Since making libiconv-win32 part of the app’s project and adding the appropriate function calls, this app can now convert ISO-8859-1 data to UTF-8 (and back again).

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>




  



March 2010
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031  

Statistics

There are currently 42 posts and 25 comments, contained within 13 categories.


Miscellaneous
- Source Files

Add to Technorati Favorites


Storage B
-OpenDDS 2.1.1
-OpenDDS 2.1
-It Proved Just Too Difficult
-Bridge Simulators
-C++0x FAQ
-Skepticism and standards of evidence applied development practices
-OpenDDS 2.0.1
-OpenDDS 2.0
-OpenDDS Version 1.3 Released
-LGPL License Option Added to Qt

Valid XHTML 1.0!

Valid CSS!