To resolve this problem, you need to convert one byte into ASCII size of three characters to preserve the lead character.
The MSComm control will interpret this byte and the following byte as one double-byte character and return only one byte for the equivalent ASCII character.
On DBCS-enabled operating systems (running operating system software that uses one of the double-byte character sets), binary data will be corrupted if one of the binary values matches a DBCS lead character. When received, the data must be converted from a character back into binary data one byte at a time. (The techniques in this article will also work with modems.) The binary data must be converted one byte at a time to a character and then transmitted. This article demonstrates how to use the MSComm control to transmit and receive binary data using RS-232 cable. This feature limits you to transmitting only text- based files. The Communications control, MSCOMM32.OCX, provides serial communications for your application by allowing the transmission and reception of data through a serial port where only a string of characters to the transmit buffer is permitted. This article illustrates some techniques using the Visual FoxPro 3.0 Communications (MSComm) control for receiving and transmitting binary data over RS-232 cable (without having modems). How to transmit and receive binary data by using the VFP MSComm32 control Summary