Windows Unicode C++ Stream Output Failure

前端 未结 4 1605
悲&欢浪女
悲&欢浪女 2020-11-30 09:27

I am currently writing an application which requires me to call GetWindowText on arbitrary windows and store that data to a file for later processing. Long story short, I no

4条回答
  •  有刺的猬
    2020-11-30 09:36

    Although the wide character streams take Unicode as input, that's not what they produce as output - the characters go through a conversion. If a character can't be represented in the encoding that it's converting to, the output fails.

提交回复
热议问题