-
June 8th, 2020, 11:25 AM
#1
Read file with chinese characters
Hi everyone,
I'm trying to read a .txt file with Chinese characters.
The file is currently saved with MicroSoft Notepad in UTF-16 LE format.
Is there some way of reading this file to obtain a wchar_t * array?
Thank you in advance.
Last edited by rmirani; June 8th, 2020 at 11:29 AM.
-
June 8th, 2020, 12:39 PM
#2
Re: Read file with chinese characters
Plenty of examples on google. Try searching for "how to read a unicode file in c++ example".
-
June 8th, 2020, 02:14 PM
#3
Re: Read file with chinese characters
Originally Posted by rmirani
I'm trying to read a .txt file with Chinese characters.
The file is currently saved with MicroSoft Notepad in UTF-16 LE format.
Is there some way of reading this file to obtain a wchar_t * array?
Maybe this article could help you?
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|