Closed (fixed)
Project:
Location
Version:
6.x-3.x-dev
Component:
Miscellaneous
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2005 at 13:42 UTC
Updated:
2 May 2010 at 18:40 UTC
note for those who are extending location.module for their country:
in function location_province_list_xx() use utf8 code to allow special characters in provinces string.
for example, french provinces:
function location_province_list_fr() {
return array(
'43'=>'Franche-Comté',
'04'=>'La Réunion',
'73'=>'Midi-Pyrénées',
'93'=>'Provence-Alpes-Côte d\'Azur',
'82'=>'Rhône-Alpes'
...);
}
will produce '?' characters instead of 'é' in provinces select list .
So use utf8 codes in strings like this:
function location_province_list_fr() {
return array(
'43'=>'Franche-Comté',
'04'=>'La Réunion',
'73'=>'Midi-Pyrénées',
'93'=>'Provence-Alpes-Côte d\'Azur',
'82'=>'Rhône-Alpes'
...);
}
Comments
Comment #1
brmassa commentedits fixed.
regrads,
massa
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
marcushenningsen commentedInstead of using special codes it should be possible to use the special characters and just save the file (encode the file) in UTF8.
Marcus