Append nbsp while getting the value

I used dhtmlGrid, while the loading the data there is no issue, but while submit I faced the issue like appending the new value as " &nbsp" where there is double space in the column.

can any one tell me how to to solve this issue?

e.g “john peter” as one of the column value we get the output as “jonh  peter”.

Unfortunately the issue cannot be reproduced locally.
If issue still occurs for you - please, provide any kind of sampler of your code with the init of your grid.