Autor Beitrag
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 17.04.05 14:21 
Hast du Word? Dann geh mal auf Einfügen-Symbol und schreib unten bei Zeichencode "255F" bei "Unicode (hex)" rein. ;) Dann weißt du welches ich mein. ;) Und das war mal auf jeden Fall in der DOS-ASCII-Table drin! Glaub's mir. Ich bin nur zu faul zum scannen. ;)
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: So 17.04.05 14:26 
Ah jetzt seh ich endlich das Problem. Falsche Codepage gewählt. Ihr habt ja alle eine Deutsche Windows-Installation. Ich eben nicht :) Das gesuchte Zeichen gibt es in der Deutschen Codepage nicht!
Gib mal den Befehl mode con codepage select=437 ein, bevor du dein Programm startest. (Ich hoffe dass die Codepage standardmässig installiert ist.)
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 17.04.05 14:30 
user profile icondelfiphan hat folgendes geschrieben:
Ah jetzt seh ich endlich das Problem. Falsche Codepage gewählt. Ihr habt ja alle eine Deutsche Windows-Installation. Ich eben nicht :) Das gesuchte Zeichen gibt es in der Deutschen Codepage nicht!
Gib mal den Befehl mode con codepage select=437 ein, bevor du dein Programm startest. (Ich hoffe dass die Codepage standardmässig installiert ist.)

Geht immer noch nicht... :gruebel:
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: So 17.04.05 14:31 
Tut mir leid, ich habe kein Word. Aber ich schick dir mal meine Tabelle, in der du das Zeichen suchen kannst :wink: , und du wirst sehen, dass dein Zeichen dort nicht gibt. Word nutzt dort vielleicht irgendwelche extra Sonderzeichen.

PS: Ich hoffe, dass es kein Problem gibt mit den Autoren und dem Verlag meines Tafelwerkes :wink: .
Einloggen, um Attachments anzusehen!
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 17.04.05 14:37 
user profile iconHeiko hat folgendes geschrieben:
Tut mir leid, ich habe kein Word. Aber ich schick dir mal meine Tabelle, in der du das Zeichen suchen kannst :wink: , und du wirst sehen, dass dein Zeichen dort nicht gibt.

Stimmt. Das ist halt eine Tabelle zum aktuellen Standart-ASCII-Zeichensatz.

user profile iconHeiko hat folgendes geschrieben:
Word nutzt dort vielleicht irgendwelche extra Sonderzeichen.

:gruebel: Wie? Das hab ich dir doch nur gesagt, damit du guckn kannst, wie das Ding genau aussieht. Ich hab doch da auch kein ASCII eingestellt. ;) War doch Unicode. ;)
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: So 17.04.05 15:06 
user profile iconWeBsPaCe hat folgendes geschrieben:
Stimmt. Das ist halt eine Tabelle zum aktuellen Standart-ASCII-Zeichensatz.

"Aktueller" Zeichensatz? Hmm ;)

Man bemerke im Bild: "Code-Tabelle 850". Das ist der Deutsche Zeichensatz. Das gesuchte Zeichen ist aber in der Code-Tabelle 437. Mit mode con, siehe oben, kannst du die Code-Page ändern. Jedoch scheint das ganze dann nur im Vollbildmodus (Alt+Enter) zu klappen. Windows-Bug, oder so.

Sowas kommt der Sache vielleicht etwas näher (im Vollbildmodus sollte es klappen):
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
program Project2;

{$APPTYPE CONSOLE}

uses
  SysUtils, Windows;

Var
 Dummy: DWord;
 S: String;
 Coord: _COORD;
begin
 SetConsoleOutputCP(437);
 S := Char(199);
 WriteConsoleOutputCharacter(GetStdHandle(STD_OUTPUT_HANDLE),Pointer(S),Length(S),Coord,Dummy);
 readln;
end.
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: So 17.04.05 15:07 
Ich meine damit, dass es ein Sonderzeichen von Word ist. So wie WordPerfect, das ist mein Schreibprogramm, auch ein paar hundert Sonderzeichen hat.

PS: Word ist von Microsoft und WordPerfect von Corel :wink: .
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 17.04.05 15:10 
:gruebel: Was soll denn das da unten alles??

So geht's auch:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
program Project2;

{$APPTYPE CONSOLE}

uses
  SysUtils, Windows;

begin
readln;
SetConsoleOutputCP(437);
writeln(chr(199));
readln;
end.


Jedoch wiederum nur im Vollbildmodus... :eyes:
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: So 17.04.05 15:14 
Ah gut, irgendwie hat's bei mir mit Writeln nicht geklappt, deswegen der direkte API Befehl. Hatte wohl irgend n Fehler drin.
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 17.04.05 15:14 
user profile iconHeiko hat folgendes geschrieben:
Ich meine damit, dass es ein Sonderzeichen von Word ist. So wie WordPerfect, das ist mein Schreibprogramm, auch ein paar hundert Sonderzeichen hat.

Nun ja. Ich bin eigentlich der Meinung, dass dieses Zeichen halt nicht in der ASCII-850-Codepage drin ist. Bei Unicode ist's jedoch noch da. <-- Bitte berichtigen, wenn falsch.
Mehr wollt ich da oben auch nicht sagen. :?

user profile iconHeiko hat folgendes geschrieben:
PS: Word ist von Microsoft und WordPerfect von Corel :wink: .

Meinst du das weiß ich nicht?!?!?!?! :motz: :mrgreen: ;)
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Di 19.04.05 19:48 
Ja, kann man die Ausgabe der Konsolenanwendung jetzt irgendwie auf Unicode umstellen? Weil dass das nur im Fullscreen gut aussieht passt mir nicht so... ;)
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Di 19.04.05 19:57 
Wenn dir das Design nicht gefällt schreib doch gleich eine Anwendung mit Canvas :wink: . Dann kannst du jedes beliebige Design machen.
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Di 19.04.05 20:29 
Ich würde schon gerne bei Konsolenanwendungen bleiben. ;)