Home > database >  For help, pb garbled
For help, pb garbled

Time:09-18

When I use the pb8.0 get computer name and file path can display normally, but after the upgrade to 12.5, for all those who take Chinese path or special symbol computer names become garbled, beg you help me solve the master!

CodePudding user response:

Character set problem API statement to add; ansi

CodePudding user response:

Right on the ground floor, under my perfect
For example,
Function Boolean FtpRenameFile (ulong hInternet, string lpszExisting, string lpszNew) library "wininet. DLL" here add Alias for "FtpRenameFileA; Ansi "

CodePudding user response:

To switch to
The Function Boolean GetComputerName (Ref String lpBuffer, Ref ULong lpnSize) Library "kernel32. DLL" Alias For "GetComputerNameW
"Or
The Function Boolean GetComputerName (Ref String lpBuffer, Ref ULong lpnSize) Library "kernel32. DLL" Alias For "GetComputerNameA; ANSI"

CodePudding user response:

refer to the original poster shifeng6366 response:
when I use the pb8.0 get computer name and file path can display normally, but after the upgrade to 12.5, for all those who take Chinese path or special symbol computer names become garbled, beg you help me solve the master!



API function to add; Ansi or you will have the problem, or directly use pb function
  • Related