[Interest] Issue with expanding an environmental variable.

Jesus Fernandez Jesus.Fernandez at qt.io
Fri Mar 3 16:47:26 CET 2017


Are you using QString::fromUtf8 to decode the received QByteArray?

On Friday, March 03, 2017 04:35:50 PM jschneiderman at gog.com wrote:
> In an application we’re developing, we need to expand some environmental variables. We’re using the Qt 5.6  function qgetenv to do that. However, on our test code when an environmental variable contains some non-ANSI characters, e.g. Ξ♣♤ᛝᛞ๏฿Ξ , it is expanded to ?¦?????? . These are the contents we see when viewing it in the Visual Studio Debugger. Is this a known issue or perhaps something we’re doing incorrectly?
> 
> Thanks,
> 
> John Schneiderman
> Senior Software Engineer
> GOG.com
> 

-- 

Best regards,
Jesus



More information about the Interest mailing list