I am using a python program to copy an input and pasting the output to chrome browser input field .
For windows there is the 'clip' command that pastes the data.
name = "งดดา"
command = 'echo ' + name.strip() + '| clip'
os.system(command)
This works perfectly in windows. I am having issue with pasting the value to input field in Ubuntu. I have tried various ways but have not succeeded yet. I have used Xdo Library which seems to work for standard English words and numbers but doesnot work prefectly for Thai text. Here is the link to the code i have used XDO code for paste.
I believe there is an alterante for 'clip' command in Ubuntu that will do the trick.
The solution here deals with files, but I am using specific texts (Thai texts to be precise which requires tis-620 decoding) which are not supported easily.