photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: Dabrovnijk on October 23, 2018, 07:55:52 PM

Title: Wrong characters, unicode?
Post by: Dabrovnijk on October 23, 2018, 07:55:52 PM
I get wrong characters when using "Reverse Geocode all selected files...".

It should be (compare to the screendump):
Sverige, Gävleborgs län


But it is not, how can I fix that.
Title: Re: Wrong characters, unicode?
Post by: Mario on October 23, 2018, 07:59:40 PM
Which language have you configured under Edit > Preferences > GPS?
Which geocoding service do you use?
Title: Re: Wrong characters, unicode?
Post by: Dabrovnijk on October 23, 2018, 08:17:06 PM
Provider Search: GeoNames.org
Geocoding Service: GeoNames.org
Language: se

When checking I discovered (lol, didn't see that at first) that I could change the first two to use Google.
(That made the problem go away.)

Now the result is:
Sweden, Gävleborgs län;

Which is more correct and using Sweden is ok even if I would rather have it use "Sverige".

If I go to GeoNames and search för "sörforsa" the result is presented ok, https://www.geonames.org/2675146/soerforsa.html
Title: Re: Wrong characters, unicode?
Post by: Mario on October 23, 2018, 08:48:15 PM
Please provide a coordinate pair I can use to analyze this.
I'm pretty sure that I send the requested language to GeoNames.org correctly and hence it should return the names in the requested language (if available).
Title: Re: Wrong characters, unicode?
Post by: Dabrovnijk on October 23, 2018, 09:56:56 PM
61.72808
16.9588783333333

Title: Re: Wrong characters, unicode?
Post by: Mario on October 24, 2018, 02:29:46 PM
I'm not sure that I can understand the problem.

The request IMatch sends is:

http://api.geonames.org/findNearbyPlaceNameJSON?username=demo&lat=61.728080&lng=16.958878&radius=5.000000&style=FULL&maxRows=5&lang=se

Replace demo with your GeoNames.org. user name, then you can send this request via your browser.
As you can see, IMatch correctly specifies the lang as se.

The result is always "Gävleborgga leatna".

But when I specify the lang as lang=no, I get

"Gävleborgs län"

Maybe you should request the data in the Norwegian language?
Title: Re: Wrong characters, unicode?
Post by: Dabrovnijk on October 24, 2018, 10:55:52 PM
Thanks!

Using NO as language and GeoNames gave me correct text including using "Sverige" instead of "Sweden".

I also discovered that when I use "NO" as language Google also uses "Sverige" instead of "Sweden".