Wenn Sie normalerweise Dateien aus NAV erstellen, dann sind diese immer in ANSI kodiert.</p>
Ich hatte mich einmal auf die Suche gemacht ob wir mit Hilfe von Automation Server eine UTF-8 oder UTF-16 Datei erstellen können.</p>
Eine Möglichkeit ohne auf die .NET Interoperability von NAV 2009 R2 zurückzugreifen wäre es die Bibliothek 'Microsoft ActiveX Data Objects 2.8 Library' zu verwenden.</p>
Name DataType Subtype Length UTFStream Automation 'Microsoft ActiveX Data Objects 2.8 Library'.Stream </p>
CREATE(UTFStream); UTFStream.Open; UTFStream.Charset('UTF-8'); //UTFStream.Charset('UTF-16');</p>
UTFStream.WriteText('Ich bin UTF-8'); //UTFStream.WriteText('Ich bin UTF-16');</p>
UTFStream.SaveToFile('c:TEMPUTFtext.txt');</p>
UTFStream.Close;</p>
</p>
Disclaimer “Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability or fitness for a particular purpose. This mail message assumes that you are familiar with the programming language that is being demonstrated and the tools that are used to create and debug procedures.”</p>
</p>
These postings are provided "AS IS" with no warranties and confer no rights. You assume all risk for your use. </p>
Mit freundlichen Grüßen</p>
Sebastian Röttel</p>
Microsoft Dynamics Germany</p>
Microsoft Customer Service and Support (CSS) EMEA</p><div style="clear:both;"></div>
Далее