Microsoft interview question

Design and write pseudocode for a backspace function that will work with DBCS characters.

Interview Answers

Anonymous

18 Mar 2013

DBCS was a precursor to Unicode that represented some characters as single bytes and some by double bytes based on a high order bit representing the first byte of a double byte character. The trick is to traverse the data backwards until a byte can be found that is unambiguously a single byte character, then traverse forward until one character before the starting point.

Anonymous

12 Nov 2014

So can a string contain both? or it can only contain DBCS or asci ?