CSV Datei wird in Excel richtig dargestellt. Wenn ich sie jedoch über die DELDBE mit Browse() öffne, werden Umlaute nicht richtig dargestellt. Was mache ich falsch?
#include "deldbe.ch"
#include "Appbrow.ch"
Procedure Main
set charset to ansi
DbeSetDefault("DELDBE")
USE mappe1.CSV ALIAS TEST NEW EXCLUSIVE
appBrowse
appdisplay
RETURN
wenn NOTEPAD sie richtig anzeigt, dann sind es ANSI Zeichen.
SET CHARSET TO ANSI schreibt Xbase++ vor ANSI in der EXE zu verwenden, mit den DBEs gibt es aber Übersetzungen (ich weiß nicht ob es bei der DELDBE auch so ist !)
Es könnte auch an compilerschaltern (/ga / go) liegen, ich lese immer alles in Arrays und zeige die an.
The Encoding determines how data will be stored in the PostgreSQL database. Generally, the default value is SQL_ASCII for Windows systems which will store data in the standard ASCII format into the database. However, the ASCII encoding is only sufficient for English characters and has severe limitations on hosts using other language character sets. Therefore, the encoding should be changed to UTF8 both for the server and for the client.
Note: Xbase++ fully supports UTF8. Hence different language character sets can be displayed, used and saved correctly.