2004-10-28, 11:43
hallo,
while experimenting i noticed some strange behaviour of the string function on the xbmc.
i got a long string (6000 bytes or so) in html. i parsed this with the string.replace and string.find functions. e.g.:
a = string.find('<hhh>')
b = string.find('</hhh>')
text = text[:a] + text[b:]
when testing on the pc with the python interpreter it works perfect (with the import from alexpoet - great help). doing the same on the xbox doubles some tags, e.g. test outputs bring:
<h2>
<h2>
...
also text is doubled. i do not understand why it is doing that.
does anybody have any hint for me?
thanks in advance, greetings
gasgeber
while experimenting i noticed some strange behaviour of the string function on the xbmc.
i got a long string (6000 bytes or so) in html. i parsed this with the string.replace and string.find functions. e.g.:
a = string.find('<hhh>')
b = string.find('</hhh>')
text = text[:a] + text[b:]
when testing on the pc with the python interpreter it works perfect (with the import from alexpoet - great help). doing the same on the xbox doubles some tags, e.g. test outputs bring:
<h2>
<h2>
...
also text is doubled. i do not understand why it is doing that.
does anybody have any hint for me?
thanks in advance, greetings
gasgeber