dealing with UTF-8 file with C++

B

byang

Hi,
I am wondering how can read/write UTF-8 files with C++. Say, I know
there is a file encoded with UTF-8, I am now wanting to change some
character in the file. How can I achieve? Could anybody here to help on
explaining some encoding issue?

Thanks in advance!

Regards!
Bo
 
A

alasham.said

Hi,
I am wondering how can read/write UTF-8 files with C++. Say, I know
there is a file encoded with UTF-8, I am now wanting to change some
character in the file. How can I achieve? Could anybody here to help on
explaining some encoding issue?

Thanks in advance!

Regards!
Bo

Hello,

You can use std::wstring and std::wfstream. Also this article may be
helpful: http://evanjones.ca/unicode-in-c.html

Regards.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top