It is currently April 25th, 2024, 8:23 am

[Solved] Problems with symbols š,č,ž

Tips and Tricks from the Rainmeter Community
us86
Posts: 6
Joined: November 23rd, 2010, 11:22 pm

[Solved] Problems with symbols š,č,ž

Post by us86 »

At first, sory about my english... 8-)
i'm using a gnometer feed, for one local page, but it dont recognised symbols, like š, č or ž!

One exsample: It shoud be: Vidič not Vidi&#263 :D

Any tips??

tnx
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problems with symbols š,č,ž

Post by jsmorley »

us86 wrote:At first, sory about my english... 8-)
i'm using a gnometer feed, for one local page, but it dont recognised symbols, like š, č or ž!

One exsample: It shoud be: Vidič not Vidi&#263 :D

Any tips??

tnx
If I am not mistaken that can be solved with this entry from the Rainmeter Manual / Plugins / WebParser:

<snip>
CodePage
Defines the codepage of the downloaded web page. For example CodePage=28605 interprets the page as Latin 9 (ISO-8859-15). If the CodePage is set to 0 no conversion is done. CodePage=65001 means UTF-8. You can check other Windows code pages from http://www.microsoft.com/globaldev/reference/wincp.mspx
us86
Posts: 6
Joined: November 23rd, 2010, 11:22 pm

Re: Problems with symbols š,č,ž

Post by us86 »

That wos fast... :thumbup:

I found the right postcode. its 1250 (central Europe)

But, i still dont know (understand), where put this code?? :great:
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problems with symbols š,č,ž

Post by jsmorley »

us86 wrote:That wos fast... :thumbup:

I found the right postcode. its 1250 (central Europe)

But, i still dont know (understand), where put this code?? :great:
Try it at the bottom of the main WebParser measure (the one with the RegExp= statement on it)
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: Problems with symbols š,č,ž

Post by poiru »

Also, try adding DecodeCharacterReference=1 under all Plugin=Plugins\WebParser.dll lines.
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: Problems with symbols š,č,ž

Post by Chewtoy »

I've found that saving the actually document containing the notes as UTF-8 instead of ANSI solves it for the most part. No need to add CodePage=SomeNumber.
I don't think, therefore I'm not.
us86
Posts: 6
Joined: November 23rd, 2010, 11:22 pm

Re: Problems with symbols š,č,ž

Post by us86 »

ok, if i understand you must open WebParser.dll file ? I not shure this is possible...

Its possible someone do this for me, and send me this document. I tried several things, no sucess!! O.O O.O O.O Using feeds is pointless with this problem.

tnx
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: Problems with symbols š,č,ž

Post by Chewtoy »

No. You should NOT open the .dll file.

Open the document where your notes are. Save that document as UTF-8 instead of ANSI (Click 'Save As...').

If you try the Codepage solution you open the skin that display your notes, you den look for the section that is retrieving your notes and add Codepage=1250 to that section.
You save and refresh the skin. Hopefully you will see your signs.
I don't think, therefore I'm not.
us86
Posts: 6
Joined: November 23rd, 2010, 11:22 pm

Re: Problems with symbols š,č,ž

Post by us86 »

I noticed that my gmail skin dosn't have this problems. š,č,ž are working fine. Only difference beetwen gmail skin notes and feeeds skin notes is codepage=0. I tried replace codepage=0 with codepage=1250, but š,č,ž didnt working anymore.

But it doesnt work with my feeds! I try replace utf8 with ansi, codepage=0, and DecodeCharacterReference=1, but nothing works!
:o :o
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: Problems with symbols š,č,ž

Post by Chewtoy »

Code: Select all

[PNotes]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=10
Url=file://#Notes#
RegExp="(?siU)<title>(.*)</title>.*<notes>(.*)</notes>"
I use that to get my notes. Saved my txt-file that holds the notes as UTF-8 and I have no problems what so ever with š,č,ž,ê,ë,ã,å,ä,ö,ô,õ,µ,€,ñ or any other character that differs from the standard a-z.

The reason why your gmail skin works without problem might be because google made it in UTF-8 support. Seeing as how they are global, it's a pretty smart move.
I don't think, therefore I'm not.