Hello everybody,
C/AL Editor has a strange behaviour - I guess the charset of my development environment does not match the database.
For example I can't assign the Eurosign € to a textconstant:
TextConstant := '€';
after compiling C/AL Editor shows:
TextConstant := '?';
How can I achieve to save and compile the Eurosign € into my database?
Yours sincerly and tia
Daniel
0
Comments
Reports transformation to RDLC
List -1h , Complex List -3h, Document -4h (dev hours)
navisionupgrade.com
p.s. please mark as solved
if I export this object as text, edit it in Notepad and import it again it will be converted into:
or:
depending the settings of the text editor.
Editing NAV code in textfiles with a text editor you will have to set the editor explicitly to using OEM encoding when the code contains characters which have different code point between OEM and ANSI or ISO-8859-1 or UTF-8.
TLDR; Dont work with code outside of NAV itself unless you know what you are doing!
See also encoding of exported navision objects (.txt files)
I did not know that the Char type now supports Unicode codepoints. Thanks, Duikmeester, for pointing that out.
The NAVDACH objects used to use similar conversion tables. You could not export those as text objects and later re-import them without distorting the conversion. I assume, with the new editor you would destroy them even with a simple save?
https://community.dynamics.com/nav/b/dynamicsblognav/archive/2016/02/04/nav2016-w10-euro-zeichen-in-reports-nicht-mehr-richtig-anzeigt
But with labels the dynamical change of report language (based on document language code) doesn't work.
(and this is hysterical laugh)