Archi Forum

Archi => Archi Development => Topic started by: pgras on February 05, 2015, 16:12:42 PM

Title: CSV export / import problem with accented characters
Post by: pgras on February 05, 2015, 16:12:42 PM
Hello,

I'm using Archi 3.1.1 on Windows 7.

I have a model containing French and German documentation and therefore accented characters (éèäàü...).

I can export the model to CSV and the characters are correct in the exported file.

But when I import the same file back, all accented characters are replaced by strange symbols (two symbols per character).

If I reexport to csv, the file now contains the strange symbols; a new reimport replaces every strange symbol by two symbols again (therefore for every export/import the length of the symbols is doubling...)

To give an example "Office fédéral de la statistique" becomes "Office fédéral de la statistique" and a second export/import will now change it to "Office fédéral de la statistique"

Is there something I could do to avoid this problem?

Thanks for your help
Title: Re: CSV export / import problem with accented characters
Post by: pgras on February 05, 2015, 16:35:49 PM
So I can reply to myself,

I have added -Dfile.encoding=UTF8 to the Archi64.ini file and it solved my problem...

this is now the content of my ini file:

-clean
--launcher.defaultAction
openFile
-name
Archi
-vmargs
-Xms128m
-Xmx512m
-XX:MaxPermSize=256m
-Dfile.encoding=UTF8
-Dosgi.requiredJavaVersion=1.7
-Dosgi.instance.area=@user.home/AppData/Roaming/Archi
-Dosgi.configuration.area=@user.home/AppData/Roaming/Archi/.config
Title: Re: CSV export / import problem with accented characters
Post by: Phil Beauvoir on February 05, 2015, 17:12:02 PM
The files are encoded using UTF-8 when exported but as you found it needs to know this.

I might add an option for the exported encoding - ANSI or UTF-8.