Accents in <name> tag of xml files
Brought to you by:
r_x
Hello,
With the new version"mobac2.1.1a", accent in the french name balise are encoded
i.e.
Version mobac2.0.1 :
France, Référentiel hydrographique-Z(18)-2019
Version mobac2.1.1a :
(see attach image)
Perhaps we need to add a tag in settings.xml
Actualy
Regards
Nicolas
You are right, on Windows and other platforms Java does not use UTF-8 encoding by default the settings.xml file may get written in a different encoding. I fixed this in the MOBAC SVN repository.
The fix will be included in the next release. Thanks for reporting.
Last edit: r_x 2019-06-11
Perhaps in link whith my information here
https://sourceforge.net/p/mobac/forum/general/thread/b8a1467444/?limit=25#b9f7
Regards
Last edit: r_x 2019-06-12
UTF-8 with BOM is a different topic. Just don't use UTF-8 BOM files.
Hello,
this bug : #324 Accents in <name> tag of xml file
is not fix in the new version 2.1.2 Rev 2415
Regards
Nicolas</name>
Is this a new profile or an old profile created by a MOBAC version before 2.1.2?
I just tested it and everything works without problems. Anyway special characters can not be entered using the MOBAC GUI (at least not in my tests), therefore I don't know how you enter such characters.
Anyway your bugreports misse sthe basic information. Please always include a system report generated by MOBAC (debug menu).
Hello,
It's a new profile.
Please find below the XML file (Kompass-2019.xml) with <name>Monde, cartes de randonnées Kompass-2019</name>
Debug mode :
2019-08-08 12:35:42,597 INFO [main] LogSystem: Logging configured by "C:\Users\Nicolas\Desktop\mobac2.1.2\log4j.xml"
2019-08-08 12:35:42,606 INFO [main] SysInfo: Version: Mobile Atlas Creator (MOBAC) 2.1.2 (2415)
2019-08-08 12:35:42,610 INFO [main] SysInfo: Platform: Windows 8.1 (6.3)
2019-08-08 12:35:42,610 INFO [main] SysInfo: Java VM: Java HotSpot(TM) 64-Bit Server VM (1.8.0_211-b12)
2019-08-08 12:35:42,611 INFO [main] SysInfo: Directories:
currentDir: C:\Users\Nicolas\Desktop\mobac2.1.2
programDir: C:\Users\Nicolas\Desktop\mobac2.1.2
mapSourcesDir: C:\Users\Nicolas\Desktop\mobac2.1.2\mapsources
tempDir: C:\Users\Nicolas\AppData\Local\Temp
userHomeDir: C:\Users\Nicolas
userSettingsDir: C:\Users\Nicolas\Desktop\mobac2.1.2
atlasProfilesDir: C:\Users\Nicolas\Desktop\mobac2.1.2
userAppDataDir: C:\Users\Nicolas\AppData\Roaming\Mobile Atlas Creator
2019-08-08 12:35:42,611 INFO [main] SysInfo: System console available: false
2019-08-08 12:35:42,612 INFO [main] SysInfo: Startup arguments (count=0):
2019-08-08 12:35:42,613 DEBUG [main] SysInfo: Detected operating system: Windows (Windows 8.1)
2019-08-08 12:35:42,614 DEBUG [main] SysInfo: Desktop support: true
2019-08-08 12:35:42,614 DEBUG [main] SysInfo: Desktop action OPEN supported: true
2019-08-08 12:35:42,615 DEBUG [main] SysInfo: Desktop action EDIT supported: true
2019-08-08 12:35:42,615 DEBUG [main] SysInfo: Desktop action PRINT supported: true
2019-08-08 12:35:42,615 DEBUG [main] SysInfo: Desktop action MAIL supported: true
2019-08-08 12:35:42,615 DEBUG [main] SysInfo: Desktop action BROWSE supported: true
2019-08-08 12:35:43,221 INFO [main] Settings: Applying proxy configuration: host= port=
2019-08-08 12:35:43,226 INFO [main] EnvironmentSetup: Total available memory to MOBAC: 1067.00 MiB
2019-08-08 12:35:43,679 DEBUG [main] BerkeleyDbTileStore: Tile store path: C:\Users\Nicolas\Desktop\mobac2.1.2\tilestore
2019-08-08 12:35:43,712 DEBUG [AWT-EventQueue-0] MAC: Starting GUI
2019-08-08 12:35:43,734 INFO [AWT-EventQueue-0] JMapViewer: Map layer changed to: OpenStreetMap 4UMaps.eu
2019-08-08 12:35:44,164 DEBUG [AWT-EventQueue-0] JAtlasTree: Loading profile
2019-08-08 12:35:44,218 INFO [AWT-EventQueue-0] JMapViewer: Map layer changed to: Monde, cartes de randonnées Kompass-2019
2019-08-08 12:35:44,271 DEBUG [AWT-EventQueue-0] MainGUI: Selected grid zoom combo box item has changed: -1
2019-08-08 12:35:45,025 DEBUG [Map preview thread 1] BerkeleyDbTileStore: Opening tile store db: "C:\Users\Nicolas\Desktop\mobac2.1.2\tilestore\db-Monde, cartes de randonnées Kompass-2019"
Something wrong ?
Last edit: Nicolas PAOUR 2019-08-08
OK, this was a misunderstanding caused by the information about settings.xml you gave in your initial post. Settings.xml was not the original problem but the loading mechanism of the custom map source xml file.
I changed the way custom cml map sources are loaded so that the name is now correctly loaded using the charset defined in the custom map source xml file.
Edit: At the moment the Sourceforge SVN serevr seems to be down, therefore I can' comit the patch now. It will be later commited as SVN rev 2416.
Last edit: r_x 2019-08-08