Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

setting program to default UTF-8

$
0
0
today I realized I can set program to default UTF-8 which will save me trouble doing conversion in encryption/decryption

I realized when I run typevar()

UTF8ToString( m_buff) -> return unicode string

StringToUTF8(m_buff) -> return ansi string

Then I realized "ANSI" mean "the default locale for my system"

Wx allow to set charset for ANSI configuration (Project description -> languages -> various)

which mean all I have to do is set "Use ANSI string at runtime" and set Charset ANSI configuration to utf-8 , then my string will utf-8

I run test UncryptStandard/encryptStandard but remove UTF8ToString() / StringToUTF8 . it work .


I can't believe the solution is just not using UNICODE .

:cheers: now i feel like an idiot :cheers:

Viewing all articles
Browse latest Browse all 1914

Trending Articles