please tell me how to fix the CP 1252 compiling error 




On Tuesday, December 1, 2015 at 4:05:29 PM UTC-5, Adam Sherman wrote:
>
> Yes! Proof of concept on a small file, all the way from AQreseau's data to 
> my tablet running OSMAnd. Looks fantastic:
>
>
>
> On Tue, Dec 1, 2015 at 3:30 PM, Adam Sherman <[email protected] 
> <javascript:>> wrote:
>
>> I am getting somewhere… :)
>>
>> For some reason, I believed that Python 2.7.x automatically perceived 
>> strings as utf8, but apparently not. Using u'Régionale' in my translation 
>> file, plus passing --encoding='cp1252' to ogr2osm.py, works.
>>
>> A.
>>
>>
>> On Tue, Dec 1, 2015 at 3:04 PM, Adam Sherman <[email protected] 
>> <javascript:>> wrote:
>>
>>>
>>> On Tue, Dec 1, 2015 at 11:35 AM, Philippe de Franclieu <
>>> [email protected] <javascript:>> wrote:
>>>
>>>> What is the Code Page of your DBF file?
>>>> Set it to 850 International MS-DOS (with DBF Commander -Tools - Set 
>>>> Code Page) and give it another try.
>>>>
>>>
>>> I can't really do that, under Linux or Mac OS X. The documentation for 
>>> this data specifies:
>>>
>>>
>>> *Le jeu de caractères sélectionné (le « code page ») est le Windows 
>>> Latin-1 (windows 1252).*
>>>
>>> So I'm passing --encoding=cp1252 to ogr2osm.py, which, from reading the 
>>> source, gets used when processing the strings (line 379). Maybe I need to 
>>> try a different encoding?
>>>
>>> A.
>>>
>>> -- 
>>> Adam Sherman
>>> Directeur des opérations, Sauvetage bénévole Outaouais
>>> Director of Operations, Ottawa Volunteer SAR
>>> CTO, Versature Corp.
>>> +1 613 797 6819
>>>
>>
>>
>>
>> -- 
>> Adam Sherman
>> Directeur des opérations, Sauvetage bénévole Outaouais
>> Director of Operations, Ottawa Volunteer SAR
>> CTO, Versature Corp.
>> +1 613 797 6819
>>
>
>
>
> -- 
> Adam Sherman
> Directeur des opérations, Sauvetage bénévole Outaouais
> Director of Operations, Ottawa Volunteer SAR
> CTO, Versature Corp.
> +1 613 797 6819
>

-- 
You received this message because you are subscribed to the Google Groups 
"Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to