there is text box of length size 10 characters and we are printing the text character counter also which display the no of character left in the text box.
if we are using ascii or UTF8 charctaers then it will displaying exact character-counter also. But in back end side it can save 10 characters size only. since UTF8 charcater is 2 byte per character.So if I put 10 UTF8 character in text box. It size will be 20 and it is not able to store in the database.