LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 12-21-2004, 03:09 PM   #1
kuna
LQ Newbie
 
Registered: Dec 2004
Location: Canada
Posts: 7

Rep: Reputation: 0
how to read UTF8, UTF16 or UTF32


I'm new to Linux programming.

I'm looking how can I read, in c/c++, UTF8, UTF16 or UTF32 files ?

I alreday know that if I check the first two bytes of a file and if there are 255 and 254, the file is UTF-16.

How can I read each line of a UTF16 file?

Thanks

Kuna
 
Old 12-21-2004, 03:37 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 50
UTF-8 - http://www.faqs.org/rfcs/rfc3629.html
UTF-16 - http://www.faqs.org/rfcs/rfc2781.html
 
Old 12-21-2004, 03:58 PM   #3
kuna
LQ Newbie
 
Registered: Dec 2004
Location: Canada
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks, but I'm more looking for GNU function to read from UTF-16 files (line byline)

Kuna
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
utf8 fonts failed by ntfs read kandahari Fedora 1 04-11-2005 08:34 PM
KDE and utf8 shoki_neu Linux - Software 1 01-10-2005 10:58 AM
utf8 error??? vbbjq Slackware 2 05-31-2004 12:18 AM
Utf8 akasantos Fedora 2 11-18-2003 11:03 AM
NTFS and UTF8 Imyrryr Linux - Newbie 1 08-08-2003 04:08 PM


All times are GMT -5. The time now is 11:58 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration