KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: RECEIVE PACKET receives bytes not characters
PRODUCT: 4D | VERSION: 11.5 | PLATFORM: Mac & Win
Published On: January 25, 2010

It should be noted that the command RECEIVE PACKET used in the following way will receive numChars in Bytes and not Characters:

RECEIVE PACKET ($doc;$receiveVar;numChars)

This is the same in ASCII or Unicode, in 4D v11 SQL as in 4D 2004, but it raises concerns in Unicode Mode. By default 4D v11 SQL uses UTF-8 which encodes accented characters in two bytes unlike Mac-Roman generally used in ASCII mode or by 4D 2004.