I was recently playing with strings, and I have come across a strange issue. During Operator overloading with + for String concatenation. I have tried to overload with two chars to a string. It returns me a peculiar behaviour.
string a = 'den';
a+='e'+'r';
I expect the result to be dener. But,it returns den╫. I like to know, what went wrong my approach. It works when, I tried it separate line, like below.
string a = 'den';
a+='e';
a+='r';
I got answer from a different question. But, I am repeating here, for anywork around to solve my problem.