In my script below I load an URL with its source code (I want it!), but before to past it into the field "field_01", I want to give a index number to each line of source code.
So, untill the line:
Code: Select all
set the unicodeText of fld "field_01" to uniEncode (IT,"UTF8")
Here is the script:
Code: Select all
on mouseUp
get URL "http://fr.wiktionary.org/wiki/accompagner"
set the text of field "field_01" to null
wait 2 seconds -- to see the change
put IT into field "field_01"
set the unicodeText of fld "field_01" to uniEncode (IT,"UTF8") -- Everything OK untill here
repeat with tLineNum = 1 to the number of lines of field "field_01"
put line tLineNum of field "field_01" into tLaLigne
set the Text of line tLineNum of field "field_01" to tLineNum&&":"&&tLaLigne
--set the unicodeText of line tLineNum of field "field_01" to tLineNum&&":"&&tLaLigne
--///**\\\ this syntax returns chinese chars and LC becomes very, very slow !!!
end repeat
end mouseUp
For example, at line 78 I can read :
but if I check the source code in my browser of this URL it should betitle="prononciation API">/a.k??.pa.?e/
Any idea where is my error ?title="prononciation API">/a.kɔ̃.pa.ɲe/
BTW, this handler is very slow with 409 lines of HTML
Thanks in advance, Jean-Paul.