aleksey.tomin
07/30/2020, 8:36 AMcan't open file
For C I've found the solution - OemToCharA
function but it doesn't work for me
fileName = memScoped {
val bytes = allocArray<CHARVar>(aFileName.length * 2)
OemToCharA(aFileName, bytes)
bytes.toKString()
}
fileName contains wrong charsPavel Punegov [JB]
07/30/2020, 10:20 AMfopen
won’t work. You should use _wfopen
with MultiByteToWideChar()
to convert between UTF-8 and UTF-16.