Thank you for all the suggestions. I still don’t know what the problem is…
I copied and pasted directly your example text (foo CAMIÓN foo) in my text document but still it does not work.
I added the console.log(the_sel) command and this is what I observe in the log file (pystderr.log) after executing the script:
[2016-11-08 18:04:05,426] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘collab_remote_cursor_4’
[2016-11-08 18:04:05,427] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘collab_remote_cursor_5’
[2016-11-08 18:04:05,427] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘collab_remote_cursor_2’
[2016-11-08 18:04:05,427] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘collab_remote_cursor_3’
[2016-11-08 18:04:05,427] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘collab_remote_cursor_1’
[2016-11-08 18:04:05,427] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘collab_remote_change’
[2016-11-08 18:04:05,427] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘spelling_error’
[2016-11-08 18:04:05,427] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘collab_local_change’
[2016-11-08 18:04:26,256] [WARNING] console-logger: Key event not available on GTK2: key=“u” modifiers=“control,shift” (1) in chrome://komodo/content/tail/tail.xul:0
[2016-11-08 18:04:26,266] [WARNING] console-logger: Key event not available on some keyboard layouts: key=“v” modifiers=“control,alt” (1) in chrome://komodo/content/tail/tail.xul:0
[2016-11-08 18:04:33,417] [DEBUG] console: log: foo CAMIÓN foo
[2016-11-08 18:04:33,430] [ERROR] console-logger: ReferenceError: view is not defined (2) in chrome://openfiles/content/openfiles.js:585
Traceback (most recent call last):
File “chrome://openfiles/content/openfiles.js”, line 585, in
[2016-11-08 18:06:22,328] [ERROR] console-logger: ReferenceError: view is not defined (2) in chrome://openfiles/content/openfiles.js:585
Traceback (most recent call last):
File “chrome://openfiles/content/openfiles.js”, line 585, in
[2016-11-08 18:06:25,496] [DEBUG] console: log: foo CAMIÓN foo
[2016-11-08 18:06:25,500] [ERROR] console-logger: ReferenceError: view is not defined (2) in chrome://openfiles/content/openfiles.js:585
Traceback (most recent call last):
File “chrome://openfiles/content/openfiles.js”, line 585, in
[2016-11-08 18:06:27,394] [ERROR] console-logger: ReferenceError: view is not defined (2) in chrome://openfiles/content/openfiles.js:585
Traceback (most recent call last):
File “chrome://openfiles/content/openfiles.js”, line 585, in
And here there is the text file that I uploaded in a server (in UTF-8):
https://filetea.me/t1sv0UpiVh9RL2elxTt7pA4Hw
Thanks in advance for any idea.