It is currently May 1st, 2024, 5:35 pm

[RESOLVED]Problem with accent

Get help with creating, editing & fixing problems with skins
maxaille
Posts: 2
Joined: July 2nd, 2011, 6:45 pm

[RESOLVED]Problem with accent

Post by maxaille »

Hello and sorry for my english, I'm French.
So, I have modified "Befor Dawn Bar" to make it in french and mod some things.
But I have changed the Yahoo weather API by Google weather API (because it's in French) and it display a ? sign instead of accents.(see screenshot)

Anyone can help me ? ><
You do not have the required permissions to view the files attached to this post.
Last edited by maxaille on July 2nd, 2011, 7:55 pm, edited 1 time in total.
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Problem with accent

Post by Kaelri »

It's possible that your font doesn't have accented characters. You should open it in Character Map to make sure they're available.

If they are, then you can replace the problem characters with the correct ones using a Substitute line on the WebParser measures. For example, if you wanted to replace all instances of the letter "a" with the letter "b", and all "c" with "d", you'd write:

Code: Select all

Substitute="a":"b","c":"d"
maxaille
Posts: 2
Joined: July 2nd, 2011, 6:45 pm

Re: Problem with accent

Post by maxaille »

I know the base of scipting in rainmeter;
I have tested some font (Arial, Calibri, Century Gothic) and it has not changed.

The part of code is :

Code: Select all

[MeasurePrevMeteo]
Measure=Plugin
Plugin=Plugins\WebParser.dll
CodePage=UTF-8
Url=http://www.google.com/ig/api?weather=Achenheim&hl=fr
RegExp=(?siU)<forecast_information>.*</forecast_information>.*<current_conditions>.*</current_conditions>.*<forecast_conditions>.*</forecast_conditions>.*<forecast_conditions>.*<day_of_week data=\"(.*)\"/>.*<low data=\"(.*)\"/>.*<high data=\"(.*)\"/>.*<icon data=\"(.*)\"/>.*<condition data=\"(.*)\"/>
Substitute="lun.":"Lundi:","mar.":"Mardi:","mer.":"Mercredi:","jeu.":"Jeudi:","ven.":"Vendredi","sam.":"Samedi:","dim.":"Dimanche:"
StringIndex=1

;some code;

[MeasurePrevisionMeteo]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasurePrevMeteo]
CodePage=Latin I
StringIndex=5

[MeterPrevisionMeteo]
MeasureName=MeasurePrevisionMeteo
Meter=String
x=1400
y=305
FontSize=18
FontColor=255,255,255
FontFace=Arial Unicode MS
antialias=1
I have tested to change the CodePage with UTF-8 and ANSI, but nothing changed.

EDIT: I have tested with CodePage=1252 and it's done.
Sorry for inconvenience :oops:
Dugrok
Posts: 1
Joined: November 29th, 2011, 4:11 am

Re: [RESOLVED]Problem with accent

Post by Dugrok »

Sorry to bump an old thread, but I'm also experiencing a similar problem.

I'm using the Enigma skin that comes with the latest version of Rainmeter and it all works great aside from one thing : accents in notes. French is my native language, and as such I generally think in French when I'm writing quick notes/reminders. In the notepad files (the .txt) the accents show up fine. However, when they're displayed in the skin, they come up all garbled.

Here's a picture to show what I mean. Hopefully, someone can help me out. :)


EDIT : Did some more digging around. As it seems, the author of Enigma is working on a fix in an upcoming patch. Sorry to have bothered anyone.