Hi,
We have different systems where the symbol files are transfered to and read. Every time we change something we have to re-encode the files again to make them useable on windows and linux machines.
is it possible to set the default encoding of symbol files from "ANSI" or "CP1252" to "UTF-8"?
Thanks
Encoding of symbol files
Re: Encoding of symbol files
Hi,
Whether a symbols file is saved with UTF-8 encoding is determined automatically. You could add a Unicode character somewhere, such as the Comment field in Symbols properties, to force it to always be saved with UTF-8.
Whether a symbols file is saved with UTF-8 encoding is determined automatically. You could add a Unicode character somewhere, such as the Comment field in Symbols properties, to force it to always be saved with UTF-8.
Re: Encoding of symbol files
Hi,
I don't think so, because I edit a symbol file and added official CANopen vendor IDs. At least it seems that the symbol editor can't display UTF-8 encoded characters correctly.
Any further Idea how to change the encoding...
BR
Ben
I don't think so, because I edit a symbol file and added official CANopen vendor IDs. At least it seems that the symbol editor can't display UTF-8 encoded characters correctly.
Any further Idea how to change the encoding...
BR
Ben
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: Encoding of symbol files
You wrote
Did you create a own symbol file in a text Editor, or do you import a DBC ?
Keep in mind that you need to save files as UTF-8 BOM (Byte Order Mark) to be sure the UTF-8 "Header" is also written to the File.
Using the UTF-8 BOM, force to write the needed Header (3 Bytes) and so the "reader" know how to interpret the characters.
If you use for example an external Text Editor like Notepad ++, you could simply select the UTF-8 BOM Decoding and save the file.
But the file you shown is no Symbol File? How did you import your information into our Tools?I don't think so, because I edit a symbol file and added official CANopen vendor IDs.
Did you create a own symbol file in a text Editor, or do you import a DBC ?
Keep in mind that you need to save files as UTF-8 BOM (Byte Order Mark) to be sure the UTF-8 "Header" is also written to the File.
Using the UTF-8 BOM, force to write the needed Header (3 Bytes) and so the "reader" know how to interpret the characters.
If you use for example an external Text Editor like Notepad ++, you could simply select the UTF-8 BOM Decoding and save the file.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------