c# - Reading from buffer shows unrecognizable (Chinese) characters -
c# - Reading from buffer shows unrecognizable (Chinese) characters -
i doing p/invoke on ntdll.dll!ntwritefile , while reading buffer (pvoid), i'm getting unrecognizable characters. tried different encoding no change. i'm monitoring process using api monitor rohitab see right value i'm trying retrieve. run issue?
ntwritefile( in handle filehandle, in handle event optional, in pio_apc_routine apcroutine optional, in pvoid apccontext optional, out pio_status_block iostatusblock, in pvoid buffer, in ulong length, in plarge_integer byteoffset optional, in pulong key optional ); example of output:
笍^稌ƭ덾塾畿浽ꭼɿݾ浼굺ꥻꥻ Āጀ‘℀
萰퓶픊茚 缊<縌葿繾륿뙾孿퍿Ϳ큾靾≿≿
缊f縌ϲ橿筿偿᱿㽿ꅿ왿ѿ豿豿 笍^稌ƭ덾塾畿浽ꭼɿݾ浼굺ꥻꥻ 缊<縌葿繾륿뙾孿퍿Ϳ큾靾≿≿ 缊f縌ϲ橿筿偿᱿㽿ꅿ왿ѿ豿豿 缷舆ⴀᣢ
that's happens when interpret ascii or ansii encoded text if utf-16. so, need find out text encoding is, , interpret accordingly.
so perhaps whatever using inspect info using utf-16 mistake. or, maybe more likely, code writes should writing utf-16.
c# pinvoke
Comments
Post a Comment