LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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
 
Thread Tools
Old 12-21-2004, 03:09 PM   #1
kuna
LQ Newbie
 
Registered: Dec 2004
Location: Canada
Posts: 7
Thanked: 0
how to read UTF8, UTF16 or UTF32


[Log in to get rid of this advertisement]
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
kuna is offline     Reply With Quote
Old 12-21-2004, 03:37 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246
Thanked: 0
UTF-8 - http://www.faqs.org/rfcs/rfc3629.html
UTF-16 - http://www.faqs.org/rfcs/rfc2781.html
itsme86 is offline     Reply With Quote
Old 12-21-2004, 03:58 PM   #3
kuna
LQ Newbie
 
Registered: Dec 2004
Location: Canada
Posts: 7
Thanked: 0

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

Kuna
kuna is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


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 01:20 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration