What do you mean by indesign character ?
I mean character.
I have a string value "." and I want this as a character.
If you want to insert that string e.g. at the selected insertionPoint or replace a selected character with that string, you do
app.selection.contents = ".";