You'll want to encode the text in order to get the correct utf-8 length (to work with unicode text):
```python
sm.setSel(start, start+len(text.encode("utf-8")))
```
as the Scintilla API works in bytes