It is currently May 3rd, 2024, 6:28 am
Invalid Substitute issue
-
- Developer
- Posts: 1721
- Joined: July 25th, 2009, 4:47 am
Re: Invalid Substitute issue
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.
-
- Posts: 46
- Joined: September 24th, 2012, 2:11 pm
Re: Invalid Substitute issue
Great, thank you for letting me know
If I understand correctly, Greek characters are not affected by this restriction?
If I understand correctly, Greek characters are not affected by this restriction?
-
- Developer
- Posts: 1721
- Joined: July 25th, 2009, 4:47 am
Re: Invalid Substitute issue
Unfortunately, no. Basically, only the characters on this page will work reliably in Lua.
-
- Posts: 46
- Joined: September 24th, 2012, 2:11 pm
Re: Invalid Substitute issue
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.
Re: Invalid Substitute issue
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
here's a greek feed:
http://www.avgi.gr/RSSStartPage.action
-
- Posts: 46
- Joined: September 24th, 2012, 2:11 pm
Re: Invalid Substitute issue
Quite positive. This is what I've tried:
And the only thing not working exactly as I'd want is it displays +0000 after each date. Your url works just as well.
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
Re: Invalid Substitute issue
both do not work here at all.
i wonder if that has something to do with the system's locale settings.
i wonder if that has something to do with the system's locale settings.