


MIDB("中国" 2 1) returns " " (byte position 2 is not at the beginning of a character in a DBCS string 1 space character is returned).
:max_bytes(150000):strip_icc()/gnumeric-579bcd8b5f9b589aa9708ae8.png)
MIDB("中国" 1 4) returns "中国" (4 bytes constitute two complete DBCS characters). MIDB("中国" 1 3) returns "中 " (3 bytes constitute one and a half DBCS character the last byte results in a space character). MIDB("中国" 1 2) returns "中" (2 bytes constitute one complete DBCS character). MIDB("中国" 1 1) returns " " (1 byte is only half a DBCS character and therefore the result is a space character). MIDB("中国" 1 0) returns "" (0 bytes is always an empty string).
