All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bernhard Walle <bernhard@bwalle.de>
To: tblue <ashley.glenister@ukonline.co.uk>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: Unicode to CP1252
Date: Thu, 08 Oct 2009 20:23:34 +0200	[thread overview]
Message-ID: <4ACE2E26.1080304@bwalle.de> (raw)
In-Reply-To: <25802503.post@talk.nabble.com>

tblue schrieb:
> 
>  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


      reply	other threads:[~2009-10-08 18:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-08 11:48 Unicode to CP1252 tblue
2009-10-08 18:23 ` Bernhard Walle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ACE2E26.1080304@bwalle.de \
    --to=bernhard@bwalle.de \
    --cc=ashley.glenister@ukonline.co.uk \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.