Hi folks,
I fixed my first problem, but now I get an extra / at the end of my Twitter string no matter what I do to replace question marks and spaces with %%3F and %%20:
local function tweetit (event)
dizz="I need your help playing Kwazy Kwiz! http://thislink.com "…loadFile(“questText.txt”)
print (dizz)
spizz=“http://twitter.com/intent/tweet?text=”
dizz=string.gsub(dizz, " ", “%%20”)
dizz=string.gsub(dizz, “?”, “%%3F”)
dizz=string.sub(dizz,0,string.len(dizz)-1) // string length of dizz does not remove the slash; dizz-1 removes the ? from the question
spizz=spizz…dizz
xButton.isVisible=true
native.showWebPopup(30, 0, 480, 300,spizz)
end
Would someone be able to show me what I’m doing wrong?
Thank you,
Lionel