I try to generate a file from navision (3.70) encoding in UTF-8 but i don't know how. I cannot use an external program. The file must be directly generate into UTF-8. Could you help me?
i have not try this solution but a collegue show me another one that works :
Create the file you want to export into UTF-8 into a ANSI one. Create another file in binary this time (TEXTMODE = false) and forced the 3 beginning characters to be in hexadecimal : EF BB BF. Then open your first file with textmode = false and read each line and copy them into the second file.
The second file will be considered as UTF-8 (with EF BB and BF value) and contains all datas you want to export.
Interresting one, but this works only if your text contains nothing then good old 7-bit ASCII. Any Character above 7F (127) will result in a garbled textfile.
Comments
Google for this, maybe there exist a freeware dll.
something like this:
i have not try this solution but a collegue show me another one that works :
Create the file you want to export into UTF-8 into a ANSI one. Create another file in binary this time (TEXTMODE = false) and forced the 3 beginning characters to be in hexadecimal : EF BB BF. Then open your first file with textmode = false and read each line and copy them into the second file.
The second file will be considered as UTF-8 (with EF BB and BF value) and contains all datas you want to export.
Best regards,