Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #92345

Re: unicode string manipulation and file I/O

From MarioCCCP <NoliMihiFrangereMentulam@libero.it>
Newsgroups comp.lang.c++
Subject Re: unicode string manipulation and file I/O
Date 2023-10-03 20:14 +0200
Organization A noiseless patient Spider
Message-ID <ufhlm6$3mapv$1@dont-email.me> (permalink)
References <ufhg0a$3l3bg$1@dont-email.me> <ufhg5a$3l5i7$1@dont-email.me>

Show all headers | View raw


On 03/10/23 18:40, Bonita Montero wrote:
> Am 03.10.2023 um 18:37 schrieb MarioCCCP:
>>
>>
>> I have been away from C++ for too long and I am very 
>> confused (particularly with the differences between 
>> wchar_t strings and unicode strings, like UTF-8).
>>
>> I'd need to load / save text files of non-Ascii strings 
>> (containing actual unicode codepoints not represented as 
>> "entities" but as actual characters, of variable size).
>>
>> does the standard library contain suitable functions for 
>> UFT-8 unicode string manipulation and input/output on files ?
>>
>> I am trying to use QString from QT ... but frustratingly 
>> produces compile errors IN THEIR headers (not yet in my 
>> own code), and I can't find what I am missing. So I was 
>> also looking for some more standard and portable solution.
>>
>> Tnx for any advice. Pls also mention relevant headers, if any
> 
> Maybe this helps:
> https://stackoverflow.com/questions/4775437/read-unicode-utf-8-file-into-wstring
> 
> 

I'll have a look, tnx !
Ciao

-- 
1) Resistere, resistere, resistere.
2) Se tutti pagano le tasse, le tasse le pagano tutti
MarioCPPP

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

unicode string manipulation and file I/O MarioCCCP <NoliMihiFrangereMentulam@libero.it> - 2023-10-03 18:37 +0200
  Re: unicode string manipulation and file I/O Bonita Montero <Bonita.Montero@gmail.com> - 2023-10-03 18:40 +0200
    Re: unicode string manipulation and file I/O MarioCCCP <NoliMihiFrangereMentulam@libero.it> - 2023-10-03 20:14 +0200
  Re: unicode string manipulation and file I/O James Kuyper <jameskuyper@alumni.caltech.edu> - 2023-10-03 23:28 -0400
    Re: unicode string manipulation and file I/O MarioCCCP <NoliMihiFrangereMentulam@libero.it> - 2023-10-04 18:24 +0200

csiph-web