Thread: Convert UTF signs

  1. #1
    Registered User
    Join Date
    Jan 2009

    Convert UTF signs

    i want to convert an utf file 8 to utf 16.
    Is the only way to do this with low operating functions like fread and fwrite or is there a way with e.g. fgetc ?

    Thank you for your interest,

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    In windows you use MultiByteToWideChar(). Under *nix you use the iconv library.


  3. #3
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    segmentation fault
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  2. Replies: 3
    Last Post: 08-21-2006, 06:42 AM
  3. convert double to string problem
    By gandalf_bar in forum C++ Programming
    Replies: 6
    Last Post: 03-15-2004, 05:14 AM
  4. Convert Char to Int Function
    By drdroid in forum C++ Programming
    Replies: 9
    Last Post: 02-19-2003, 12:53 PM
  5. please help ... to convert date to string
    By mel in forum C Programming
    Replies: 1
    Last Post: 06-12-2002, 10:26 AM