It is currently May 3rd, 2024, 6:28 am

Invalid Substitute issue

Get help with creating, editing & fixing problems with skins
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Invalid Substitute issue

Post by Kaelri »

I just wanted to let you know that I have a partial fix for the "double-encoding" issue here. I say "partial" because it carries the same restriction as the other method: Unicode character sets still cannot be used in Lua scripts, so these new functions will garble any values that contain extended characters.
User avatar
Saiho
Posts: 46
Joined: September 24th, 2012, 2:11 pm

Re: Invalid Substitute issue

Post by Saiho »

Great, thank you for letting me know :)

If I understand correctly, Greek characters are not affected by this restriction?
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Invalid Substitute issue

Post by Kaelri »

Unfortunately, no. Basically, only the characters on this page will work reliably in Lua.
User avatar
Saiho
Posts: 46
Joined: September 24th, 2012, 2:11 pm

Re: Invalid Substitute issue

Post by Saiho »

That's where I got the impression Greek would work, I can see pretty much all the Greek characters in that page. I've just tried it with a Greek feed and I think it's mostly working.
Alex Becherer

Re: Invalid Substitute issue

Post by Alex Becherer »

are you sure you tried a greek feed? because the characters on the page aren't greek but cyrillic.

here's a greek feed:
http://www.avgi.gr/RSSStartPage.action
User avatar
Saiho
Posts: 46
Joined: September 24th, 2012, 2:11 pm

Re: Invalid Substitute issue

Post by Saiho »

Quite positive. This is what I've tried:

Code: Select all

[QuasarsParse]
Measure=Plugin
Plugin=WebParser
Url=http://attackofthequasars.com/feed/
RegExp=(?siU)(.*)$
FinishAction=!CommandMeasure MyReader Refresh()
DecodeCharacterReference=1
Substitute="<![CDATA[":"","]]>":""

[MyReader]
Measure=Script
ScriptFile=Reader.lua
MeasureName=QuasarsParse
And the only thing not working exactly as I'd want is it displays +0000 after each date. Your url works just as well.
Alex Becherer

Re: Invalid Substitute issue

Post by Alex Becherer »

both do not work here at all.
i wonder if that has something to do with the system's locale settings.